aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/sst25l.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-08 05:21:33 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-11-07 02:32:48 -0500
commitfcfd9f2dd786a79400e1e799713ff71e939b40b5 (patch)
tree547af78a01729cced3a15345e5207bc3fd94ef6c /drivers/mtd/devices/sst25l.c
parent2aabeb20ee4b2f4dce5d4b3855cea42d42c33772 (diff)
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@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/devices/sst25l.c')
-rw-r--r--drivers/mtd/devices/sst25l.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c
index a42f1f0e7281..7cc70db97e59 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)
404 data ? data->nr_parts : 0); 404 data ? data->nr_parts : 0);
405 if (ret) { 405 if (ret) {
406 kfree(flash); 406 kfree(flash);
407 spi_set_drvdata(spi, NULL);
408 return -ENODEV; 407 return -ENODEV;
409 } 408 }
410 409