diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-voiceblue.c')
-rw-r--r-- | arch/arm/mach-omap1/board-voiceblue.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index f5992c239bcd..815a69ce821d 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -83,6 +83,9 @@ static struct platform_device serial_device = { | |||
83 | 83 | ||
84 | static int __init ext_uart_init(void) | 84 | static int __init ext_uart_init(void) |
85 | { | 85 | { |
86 | if (!machine_is_voiceblue()) | ||
87 | return -ENODEV; | ||
88 | |||
86 | return platform_device_register(&serial_device); | 89 | return platform_device_register(&serial_device); |
87 | } | 90 | } |
88 | arch_initcall(ext_uart_init); | 91 | arch_initcall(ext_uart_init); |
@@ -158,7 +161,6 @@ static void __init voiceblue_init_irq(void) | |||
158 | { | 161 | { |
159 | omap1_init_common_hw(); | 162 | omap1_init_common_hw(); |
160 | omap_init_irq(); | 163 | omap_init_irq(); |
161 | omap_gpio_init(); | ||
162 | } | 164 | } |
163 | 165 | ||
164 | static void __init voiceblue_init(void) | 166 | static void __init voiceblue_init(void) |
@@ -236,6 +238,9 @@ static struct notifier_block panic_block = { | |||
236 | 238 | ||
237 | static int __init voiceblue_setup(void) | 239 | static int __init voiceblue_setup(void) |
238 | { | 240 | { |
241 | if (!machine_is_voiceblue()) | ||
242 | return -ENODEV; | ||
243 | |||
239 | /* Setup panic notifier */ | 244 | /* Setup panic notifier */ |
240 | atomic_notifier_chain_register(&panic_notifier_list, &panic_block); | 245 | atomic_notifier_chain_register(&panic_notifier_list, &panic_block); |
241 | 246 | ||