projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69ad0e
)
mtd: socrates_nand: Remove redundant dev_set_drvdata
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 8 Oct 2013 10:01:45 +0000
(15:31 +0530)
committer
Brian Norris
<computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:50 +0000
(23:32 -0800)
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>
drivers/mtd/nand/socrates_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/socrates_nand.c
b/drivers/mtd/nand/socrates_nand.c
index 09dde7d27178c72b4f058da3ed9699c0b028c8e5..f44c7c884a20662c138c5fa4fee4cf1d67378085 100644
(file)
--- a/
drivers/mtd/nand/socrates_nand.c
+++ b/
drivers/mtd/nand/socrates_nand.c
@@
-211,7
+211,6
@@
static int socrates_nand_probe(struct platform_device *ofdev)
nand_release(mtd);
out:
- dev_set_drvdata(&ofdev->dev, NULL);
iounmap(host->io_base);
kfree(host);
return res;
@@
-227,7
+226,6
@@
static int socrates_nand_remove(struct platform_device *ofdev)
nand_release(mtd);
- dev_set_drvdata(&ofdev->dev, NULL);
iounmap(host->io_base);
kfree(host);