[PATCH 1/2] mtd: sst25l: Remove redundant spi_set_drvdata
Sachin Kamat
sachin.kamat at linaro.org
Tue Oct 8 02:21:33 PDT 2013
Driver core will set the driver data to NULL upon detach
or probe failure.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
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;
}
--
1.7.9.5
More information about the linux-mtd
mailing list