提交 17e86d38 编写于 作者: B Banajit Goswami 提交者: Kukjin Kim

ARM: SAMSUNG: Use generic s3c_set_platdata for NAND

Signed-off-by: NBanajit Goswami <banajit.g@samsung.com>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 b19952ad
...@@ -91,11 +91,10 @@ void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand) ...@@ -91,11 +91,10 @@ void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand)
* time then there is little chance the system is going to run. * time then there is little chance the system is going to run.
*/ */
npd = kmemdup(nand, sizeof(struct s3c2410_platform_nand), GFP_KERNEL); npd = s3c_set_platdata(nand, sizeof(struct s3c2410_platform_nand),
if (!npd) { &s3c_device_nand);
printk(KERN_ERR "%s: failed copying platform data\n", __func__); if (!npd)
return; return;
}
/* now see if we need to copy any of the nand set data */ /* now see if we need to copy any of the nand set data */
...@@ -123,6 +122,4 @@ void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand) ...@@ -123,6 +122,4 @@ void __init s3c_nand_set_platdata(struct s3c2410_platform_nand *nand)
to++; to++;
} }
} }
s3c_device_nand.dev.platform_data = npd;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册