summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s5p
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2011-06-02 11:27:27 +0200
committerKukjin Kim <kgene.kim@samsung.com>2011-06-04 01:45:02 +0200
commit74cdfa538d433dde9720ae02ac48a7be8c0ec3fb (patch)
treea1001452d300a909f3efff5cebbe5c1ce279ace6 /arch/arm/plat-s5p
parentARM: EXYNOS4: Remove compiler warning on exynos4_pwm4_resume (diff)
downloadlinux-74cdfa538d433dde9720ae02ac48a7be8c0ec3fb.tar.xz
linux-74cdfa538d433dde9720ae02ac48a7be8c0ec3fb.zip
ARM: SAMSUNG: Remove unused onenand plat functions
There's no place to use these functions. and actually no need to set the platform data. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-s5p')
-rw-r--r--arch/arm/plat-s5p/dev-onenand.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/plat-s5p/dev-onenand.c b/arch/arm/plat-s5p/dev-onenand.c
index 6db926202caa..20336c8f2479 100644
--- a/arch/arm/plat-s5p/dev-onenand.c
+++ b/arch/arm/plat-s5p/dev-onenand.c
@@ -15,8 +15,6 @@
#include <linux/kernel.h>
#include <linux/platform_device.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/onenand.h>
#include <mach/irqs.h>
#include <mach/map.h>
@@ -45,13 +43,3 @@ struct platform_device s5p_device_onenand = {
.num_resources = ARRAY_SIZE(s5p_onenand_resources),
.resource = s5p_onenand_resources,
};
-
-void s5p_onenand_set_platdata(struct onenand_platform_data *pdata)
-{
- struct onenand_platform_data *pd;
-
- pd = kmemdup(pdata, sizeof(struct onenand_platform_data), GFP_KERNEL);
- if (!pd)
- printk(KERN_ERR "%s: no memory for platform data\n", __func__);
- s5p_device_onenand.dev.platform_data = pd;
-}