diff options
Diffstat (limited to 'arch/arm/plat-omap/devices.c')
-rw-r--r-- | arch/arm/plat-omap/devices.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index c46c47afa090..19719329a47b 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c | |||
@@ -25,54 +25,8 @@ | |||
25 | #include <plat/board.h> | 25 | #include <plat/board.h> |
26 | #include <plat/mmc.h> | 26 | #include <plat/mmc.h> |
27 | #include <plat/menelaus.h> | 27 | #include <plat/menelaus.h> |
28 | #include <plat/mcbsp.h> | ||
29 | #include <plat/omap44xx.h> | 28 | #include <plat/omap44xx.h> |
30 | 29 | ||
31 | /*-------------------------------------------------------------------------*/ | ||
32 | |||
33 | #if defined(CONFIG_OMAP_MCBSP) || defined(CONFIG_OMAP_MCBSP_MODULE) | ||
34 | |||
35 | static struct platform_device **omap_mcbsp_devices; | ||
36 | |||
37 | void omap_mcbsp_register_board_cfg(struct resource *res, int res_count, | ||
38 | struct omap_mcbsp_platform_data *config, int size) | ||
39 | { | ||
40 | int i; | ||
41 | |||
42 | omap_mcbsp_devices = kzalloc(size * sizeof(struct platform_device *), | ||
43 | GFP_KERNEL); | ||
44 | if (!omap_mcbsp_devices) { | ||
45 | printk(KERN_ERR "Could not register McBSP devices\n"); | ||
46 | return; | ||
47 | } | ||
48 | |||
49 | for (i = 0; i < size; i++) { | ||
50 | struct platform_device *new_mcbsp; | ||
51 | int ret; | ||
52 | |||
53 | new_mcbsp = platform_device_alloc("omap-mcbsp", i + 1); | ||
54 | if (!new_mcbsp) | ||
55 | continue; | ||
56 | platform_device_add_resources(new_mcbsp, &res[i * res_count], | ||
57 | res_count); | ||
58 | new_mcbsp->dev.platform_data = &config[i]; | ||
59 | ret = platform_device_add(new_mcbsp); | ||
60 | if (ret) { | ||
61 | platform_device_put(new_mcbsp); | ||
62 | continue; | ||
63 | } | ||
64 | omap_mcbsp_devices[i] = new_mcbsp; | ||
65 | } | ||
66 | } | ||
67 | |||
68 | #else | ||
69 | void omap_mcbsp_register_board_cfg(struct resource *res, int res_count, | ||
70 | struct omap_mcbsp_platform_data *config, int size) | ||
71 | { } | ||
72 | #endif | ||
73 | |||
74 | /*-------------------------------------------------------------------------*/ | ||
75 | |||
76 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \ | 30 | #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \ |
77 | defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) | 31 | defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE) |
78 | 32 | ||