Commit 7569fc54 authored by Banajit Goswami's avatar Banajit Goswami Committed by Kukjin Kim

ARM: S3C64XX: Use generic s3c_set_platdata for OneNAND

Signed-off-by: default avatarBanajit Goswami <banajit.g@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 17e86d38
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#include <mach/irqs.h> #include <mach/irqs.h>
#include <mach/map.h> #include <mach/map.h>
#include <plat/devs.h>
static struct resource s3c64xx_onenand1_resources[] = { static struct resource s3c64xx_onenand1_resources[] = {
[0] = { [0] = {
.start = S3C64XX_PA_ONENAND1, .start = S3C64XX_PA_ONENAND1,
...@@ -46,10 +48,6 @@ struct platform_device s3c64xx_device_onenand1 = { ...@@ -46,10 +48,6 @@ struct platform_device s3c64xx_device_onenand1 = {
void s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata) void s3c64xx_onenand1_set_platdata(struct onenand_platform_data *pdata)
{ {
struct onenand_platform_data *pd; s3c_set_platdata(pdata, sizeof(struct onenand_platform_data),
&s3c64xx_device_onenand1);
pd = kmemdup(pdata, sizeof(struct onenand_platform_data), GFP_KERNEL);
if (!pd)
printk(KERN_ERR "%s: no memory for platform data\n", __func__);
s3c64xx_device_onenand1.dev.platform_data = pd;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment