diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-10-14 17:24:42 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-10-14 17:24:42 -0400 |
commit | b6825d2df55aa7d7341c715b577b73a6a03dc944 (patch) | |
tree | ae4f0f52f4c2ad4e501dd323318486ccdd7fcd93 /arch/arm/plat-omap/devices.c | |
parent | 6defd90433729c2d795865165cb34d938d8ff07c (diff) | |
parent | aa59e19d05114f9fb7718d6bc8398255476fb4f5 (diff) |
Merge branch 'omap-all' into devel
Conflicts:
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/irq.c
Diffstat (limited to 'arch/arm/plat-omap/devices.c')
-rw-r--r-- | arch/arm/plat-omap/devices.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index b38410f26203..25232b281e1e 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c | |||
@@ -20,17 +20,17 @@ | |||
20 | #include <asm/mach/map.h> | 20 | #include <asm/mach/map.h> |
21 | 21 | ||
22 | #include <mach/tc.h> | 22 | #include <mach/tc.h> |
23 | #include <mach/control.h> | ||
23 | #include <mach/board.h> | 24 | #include <mach/board.h> |
24 | #include <mach/mmc.h> | 25 | #include <mach/mmc.h> |
25 | #include <mach/mux.h> | 26 | #include <mach/mux.h> |
26 | #include <mach/gpio.h> | 27 | #include <mach/gpio.h> |
27 | #include <mach/menelaus.h> | 28 | #include <mach/menelaus.h> |
28 | #include <mach/mcbsp.h> | 29 | #include <mach/mcbsp.h> |
30 | #include <mach/dsp_common.h> | ||
29 | 31 | ||
30 | #if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE) | 32 | #if defined(CONFIG_OMAP_DSP) || defined(CONFIG_OMAP_DSP_MODULE) |
31 | 33 | ||
32 | #include "../plat-omap/dsp/dsp_common.h" | ||
33 | |||
34 | static struct dsp_platform_data dsp_pdata = { | 34 | static struct dsp_platform_data dsp_pdata = { |
35 | .kdev_list = LIST_HEAD_INIT(dsp_pdata.kdev_list), | 35 | .kdev_list = LIST_HEAD_INIT(dsp_pdata.kdev_list), |
36 | }; | 36 | }; |
@@ -76,7 +76,7 @@ int dsp_kfunc_device_register(struct dsp_kfunc_device *kdev) | |||
76 | { | 76 | { |
77 | static DEFINE_MUTEX(dsp_pdata_lock); | 77 | static DEFINE_MUTEX(dsp_pdata_lock); |
78 | 78 | ||
79 | mutex_init(&kdev->lock); | 79 | spin_lock_init(&kdev->lock); |
80 | 80 | ||
81 | mutex_lock(&dsp_pdata_lock); | 81 | mutex_lock(&dsp_pdata_lock); |
82 | list_add_tail(&kdev->entry, &dsp_pdata.kdev_list); | 82 | list_add_tail(&kdev->entry, &dsp_pdata.kdev_list); |
@@ -95,6 +95,10 @@ static inline void omap_init_dsp(void) { } | |||
95 | 95 | ||
96 | static void omap_init_kp(void) | 96 | static void omap_init_kp(void) |
97 | { | 97 | { |
98 | /* 2430 and 34xx keypad is on TWL4030 */ | ||
99 | if (cpu_is_omap2430() || cpu_is_omap34xx()) | ||
100 | return; | ||
101 | |||
98 | if (machine_is_omap_h2() || machine_is_omap_h3()) { | 102 | if (machine_is_omap_h2() || machine_is_omap_h3()) { |
99 | omap_cfg_reg(F18_1610_KBC0); | 103 | omap_cfg_reg(F18_1610_KBC0); |
100 | omap_cfg_reg(D20_1610_KBC1); | 104 | omap_cfg_reg(D20_1610_KBC1); |
@@ -156,13 +160,6 @@ void omap_mcbsp_register_board_cfg(struct omap_mcbsp_platform_data *config, | |||
156 | { | 160 | { |
157 | int i; | 161 | int i; |
158 | 162 | ||
159 | if (size > OMAP_MAX_MCBSP_COUNT) { | ||
160 | printk(KERN_WARNING "Registered too many McBSPs platform_data." | ||
161 | " Using maximum (%d) available.\n", | ||
162 | OMAP_MAX_MCBSP_COUNT); | ||
163 | size = OMAP_MAX_MCBSP_COUNT; | ||
164 | } | ||
165 | |||
166 | omap_mcbsp_devices = kzalloc(size * sizeof(struct platform_device *), | 163 | omap_mcbsp_devices = kzalloc(size * sizeof(struct platform_device *), |
167 | GFP_KERNEL); | 164 | GFP_KERNEL); |
168 | if (!omap_mcbsp_devices) { | 165 | if (!omap_mcbsp_devices) { |
@@ -538,10 +535,6 @@ static inline void omap_init_rng(void) {} | |||
538 | */ | 535 | */ |
539 | static int __init omap_init_devices(void) | 536 | static int __init omap_init_devices(void) |
540 | { | 537 | { |
541 | /* | ||
542 | * Need to enable relevant once for 2430 SDP | ||
543 | */ | ||
544 | #ifndef CONFIG_MACH_OMAP_2430SDP | ||
545 | /* please keep these calls, and their implementations above, | 538 | /* please keep these calls, and their implementations above, |
546 | * in alphabetical order so they're easier to sort through. | 539 | * in alphabetical order so they're easier to sort through. |
547 | */ | 540 | */ |
@@ -551,7 +544,6 @@ static int __init omap_init_devices(void) | |||
551 | omap_init_uwire(); | 544 | omap_init_uwire(); |
552 | omap_init_wdt(); | 545 | omap_init_wdt(); |
553 | omap_init_rng(); | 546 | omap_init_rng(); |
554 | #endif | ||
555 | return 0; | 547 | return 0; |
556 | } | 548 | } |
557 | arch_initcall(omap_init_devices); | 549 | arch_initcall(omap_init_devices); |