diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-11-11 07:18:29 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 20:22:24 +0100 |
commit | a1d7994e639c33926405448c50831d0b3e28dddc (patch) | |
tree | d93fef443c89dc9b62ce254d0f858a3e58c0e242 /drivers/mtd/nand/au1550nd.c | |
parent | mtd: mxc_nand: add missing clk_disable_unprepare() in mxcnd_remove() (diff) | |
download | linux-a1d7994e639c33926405448c50831d0b3e28dddc.tar.xz linux-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>
Diffstat (limited to 'drivers/mtd/nand/au1550nd.c')
-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: |