aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-08-01 04:51:00 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-08-01 05:54:19 -0400
commit160a84cfc975f4aaec1cb32a48bba23ccaf43761 (patch)
treeb2f7c3dc3a8791639813121a05f9c248b848d207 /arch/arm/plat-mxc
parent47ccfc340aa83e0741d9cabd7f5a3e74659a411d (diff)
ARM: mxc: drop now unused function mxc_register_device
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r--arch/arm/plat-mxc/devices.c14
-rw-r--r--arch/arm/plat-mxc/include/mach/common.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/plat-mxc/devices.c
index 0d6ed31bdbf2..5aaa8c5f3420 100644
--- a/arch/arm/plat-mxc/devices.c
+++ b/arch/arm/plat-mxc/devices.c
@@ -23,20 +23,6 @@
23#include <linux/platform_device.h> 23#include <linux/platform_device.h>
24#include <mach/common.h> 24#include <mach/common.h>
25 25
26int __init mxc_register_device(struct platform_device *pdev, void *data)
27{
28 int ret;
29
30 pdev->dev.platform_data = data;
31
32 ret = platform_device_register(pdev);
33 if (ret)
34 pr_debug("Unable to register platform device '%s': %d\n",
35 pdev->name, ret);
36
37 return ret;
38}
39
40struct platform_device *__init imx_add_platform_device_dmamask( 26struct platform_device *__init imx_add_platform_device_dmamask(
41 const char *name, int id, 27 const char *name, int id,
42 const struct resource *res, unsigned int num_resources, 28 const struct resource *res, unsigned int num_resources,
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h
index 4e3d97890d69..91d810cef6fa 100644
--- a/arch/arm/plat-mxc/include/mach/common.h
+++ b/arch/arm/plat-mxc/include/mach/common.h
@@ -66,7 +66,6 @@ extern int mx53_clocks_init(unsigned long ckil, unsigned long osc,
66 unsigned long ckih1, unsigned long ckih2); 66 unsigned long ckih1, unsigned long ckih2);
67extern struct platform_device *mxc_register_gpio(char *name, int id, 67extern struct platform_device *mxc_register_gpio(char *name, int id,
68 resource_size_t iobase, resource_size_t iosize, int irq, int irq_high); 68 resource_size_t iobase, resource_size_t iosize, int irq, int irq_high);
69extern int mxc_register_device(struct platform_device *pdev, void *data);
70extern void mxc_set_cpu_type(unsigned int type); 69extern void mxc_set_cpu_type(unsigned int type);
71extern void mxc_arch_reset_init(void __iomem *); 70extern void mxc_arch_reset_init(void __iomem *);
72extern void mx51_efikamx_reset(void); 71extern void mx51_efikamx_reset(void);