spi-gpio: Fix returned error code
PATCH 1/1 spi-gpio: Fix returned error code
This fixes the returned error code in case spi_new_device failed.
Reported-by Torgil Svensson <[email protected]>
Signed-off-by Michael Buesch <[email protected]>
drivers/spi/spi_gpio.c +1 -0
@@ -167,6 +167,7 @@ static int spi_gpio_probe(struct platforif (err) goto err_bi_setup; sp->bi.controller_data = sp; + err = -ENOMEM ; spidev =spi_new_device (master, &sp->bi);if (!spidev) goto err_new_dev;
Signature · 1 line
Greetings Michael.