mtd: au1550nd: add missing platform_set_drvdata()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:04 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a1d7994e639c33926405448c50831d0b3e28dddc
Commit: a1d7994e639c33926405448c50831d0b3e28dddc
Parent: 8bfd4f7f18050535892b74e6ec3aa2ca598c6a64
Author: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
AuthorDate: Mon Nov 11 14:18:29 2013 +0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:24 2014 -0800
mtd: au1550nd: add missing platform_set_drvdata()
Add missing platform_set_drvdata() in au1550nd_probe(), otherwise
calling platform_get_drvdata() in remove returns NULL.
Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/au1550nd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c
index ae8dd7c..909b673 100644
--- a/drivers/mtd/nand/au1550nd.c
+++ b/drivers/mtd/nand/au1550nd.c
@@ -480,6 +480,8 @@ static int au1550nd_probe(struct platform_device *pdev)
mtd_device_register(&ctx->info, pd->parts, pd->num_parts);
+ platform_set_drvdata(pdev, ctx);
+
return 0;
out3:
More information about the linux-mtd-cvs
mailing list