mtd: sst25l: Remove redundant spi_set_drvdata
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 13 13:59:04 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=fcfd9f2dd786a79400e1e799713ff71e939b40b5
Commit: fcfd9f2dd786a79400e1e799713ff71e939b40b5
Parent: 2aabeb20ee4b2f4dce5d4b3855cea42d42c33772
Author: Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Tue Oct 8 14:51:33 2013 +0530
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Nov 6 23:32:48 2013 -0800
mtd: sst25l: Remove redundant spi_set_drvdata
Driver core will set the driver data to NULL upon detach
or probe failure.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/devices/sst25l.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c
index a42f1f0..7cc70db 100644
--- a/drivers/mtd/devices/sst25l.c
+++ b/drivers/mtd/devices/sst25l.c
@@ -404,7 +404,6 @@ static int sst25l_probe(struct spi_device *spi)
data ? data->nr_parts : 0);
if (ret) {
kfree(flash);
- spi_set_drvdata(spi, NULL);
return -ENODEV;
}
More information about the linux-mtd-cvs
mailing list