diff options
author | 2013-11-11 14:18:29 +0800 | |
---|---|---|
committer | 2014-01-03 11:22:24 -0800 | |
commit | a1d7994e639c33926405448c50831d0b3e28dddc (patch) | |
tree | d93fef443c89dc9b62ce254d0f858a3e58c0e242 | |
parent | mtd: mxc_nand: add missing clk_disable_unprepare() in mxcnd_remove() (diff) | |
download | linux-dev-a1d7994e639c33926405448c50831d0b3e28dddc.tar.xz linux-dev-a1d7994e639c33926405448c50831d0b3e28dddc.zip |
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@trendmicro.com.cn>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | drivers/mtd/nand/au1550nd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c index ae8dd7c41039..909b6738ece2 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: |