Actually apply patch #10028 :)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1492 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
93767e0de1
commit
d208503911
|
@ -157,7 +157,6 @@ static int linuxspi_open(PROGRAMMER *pgm, char *port)
|
|||
|
||||
fd_gpiochip = open(gpiochip, 0);
|
||||
if (fd_gpiochip < 0) {
|
||||
close(fd_spidev);
|
||||
avrdude_message(MSG_INFO, "\n%s error: Unable to open the gpiochip %s", progname, gpiochip);
|
||||
ret = -1;
|
||||
goto close_spidev;
|
||||
|
@ -193,6 +192,7 @@ close_spidev:
|
|||
|
||||
static void linuxspi_close(PROGRAMMER *pgm)
|
||||
{
|
||||
close(fd_linehandle);
|
||||
close(fd_spidev);
|
||||
close(fd_gpiochip);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue