diff options
author | Eric Miao <ycmiao@ycmiao-ubuntu.internal.example.org> | 2008-08-09 05:54:22 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-23 17:04:32 -0400 |
commit | 2b0defd4c17f65fcfef758b8f3a811287eba73de (patch) | |
tree | 28a4f918e5b47995ac6ead0ba4ddf692da19d71b /arch/arm/mach-pxa/poodle.c | |
parent | f16177c20c42e1bd780b35259a995f7718986dd4 (diff) |
[ARM] pxa/poodle: move scoop/locomo device registration earlier
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/poodle.c')
-rw-r--r-- | arch/arm/mach-pxa/poodle.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 3f5f484549b3..e85eba3e362d 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -381,6 +381,13 @@ static void __init poodle_init(void) | |||
381 | GPSR1 = 0x00000000; | 381 | GPSR1 = 0x00000000; |
382 | GPSR2 = 0x00000000; | 382 | GPSR2 = 0x00000000; |
383 | 383 | ||
384 | platform_scoop_config = &poodle_pcmcia_config; | ||
385 | corgi_ssp_set_machinfo(&poodle_ssp_machinfo); | ||
386 | |||
387 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
388 | if (ret) | ||
389 | pr_warning("poodle: Unable to register LoCoMo device\n"); | ||
390 | |||
384 | set_pxa_fb_parent(&poodle_locomo_device.dev); | 391 | set_pxa_fb_parent(&poodle_locomo_device.dev); |
385 | set_pxa_fb_info(&poodle_fb_info); | 392 | set_pxa_fb_info(&poodle_fb_info); |
386 | pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT); | 393 | pxa_gpio_mode(POODLE_GPIO_USB_PULLUP | GPIO_OUT); |
@@ -389,14 +396,6 @@ static void __init poodle_init(void) | |||
389 | pxa_set_mci_info(&poodle_mci_platform_data); | 396 | pxa_set_mci_info(&poodle_mci_platform_data); |
390 | pxa_set_ficp_info(&poodle_ficp_platform_data); | 397 | pxa_set_ficp_info(&poodle_ficp_platform_data); |
391 | pxa_set_i2c_info(NULL); | 398 | pxa_set_i2c_info(NULL); |
392 | |||
393 | platform_scoop_config = &poodle_pcmcia_config; | ||
394 | |||
395 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
396 | if (ret) { | ||
397 | printk(KERN_WARNING "poodle: Unable to register LoCoMo device\n"); | ||
398 | } | ||
399 | corgi_ssp_set_machinfo(&poodle_ssp_machinfo); | ||
400 | } | 399 | } |
401 | 400 | ||
402 | static void __init fixup_poodle(struct machine_desc *desc, | 401 | static void __init fixup_poodle(struct machine_desc *desc, |