+ spi-add-spi-over-gpio-driver-fix-returned-error-code.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     spi-gpio: fix returned error code
has been added to the -mm tree.  Its filename is
     spi-add-spi-over-gpio-driver-fix-returned-error-code.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: spi-gpio: fix returned error code
From: Michael Buesch <mb@xxxxxxxxx>

This fixes the returned error code in case spi_new_device failed.

Reviewed-by: Torgil Svensson <torgil.svensson@xxxxxxxxx>
Signed-off-by: Michael Buesch <mb@xxxxxxxxx>
Cc: David Brownell <david-b@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/spi/spi_gpio.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/spi/spi_gpio.c~spi-add-spi-over-gpio-driver-fix-returned-error-code drivers/spi/spi_gpio.c
--- a/drivers/spi/spi_gpio.c~spi-add-spi-over-gpio-driver-fix-returned-error-code
+++ a/drivers/spi/spi_gpio.c
@@ -167,6 +167,7 @@ static int spi_gpio_probe(struct platfor
 	if (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;
_

Patches currently in -mm which might be from mb@xxxxxxxxx are

origin.patch
gpiolib-fix-typo-in-comment.patch
spi-add-spi-over-gpio-driver.patch
spi-add-spi-over-gpio-driver-fix-returned-error-code.patch
mmc-add-gpio-based-mmc-sd-driver.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux