diff options
author | Ryan Mallon <ryan@bluewatersys.com> | 2011-05-20 03:34:22 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-05-20 17:34:24 -0400 |
commit | 6618c3ada039116ca0392ce955df081adc5f015c (patch) | |
tree | 50152bf26b87889a746a2571c76dcbd3bda1008f /arch/arm/mach-spear3xx/spear310_evb.c | |
parent | 61e72bca04be2dc11a637185f2bbe6dba32ecaf3 (diff) |
ARM: 6930/1: SPEAr3xx: Rework pmx_dev code to remove conflicts
Prefix the pmx_devs to remove naming conflicts between the three
SPEAr3xx platforms. Also make pmx_driver static to each platform and
rework the init code to pass the devices rather than export the
pmx_driver structure.
Reviewed-by: Stanley Miao <stanley.miao@windriver.com>
Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-spear3xx/spear310_evb.c')
-rw-r--r-- | arch/arm/mach-spear3xx/spear310_evb.c | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/arch/arm/mach-spear3xx/spear310_evb.c b/arch/arm/mach-spear3xx/spear310_evb.c index 2d7f333bd67b..9d4aadbe24e9 100644 --- a/arch/arm/mach-spear3xx/spear310_evb.c +++ b/arch/arm/mach-spear3xx/spear310_evb.c | |||
@@ -19,25 +19,25 @@ | |||
19 | /* padmux devices to enable */ | 19 | /* padmux devices to enable */ |
20 | static struct pmx_dev *pmx_devs[] = { | 20 | static struct pmx_dev *pmx_devs[] = { |
21 | /* spear3xx specific devices */ | 21 | /* spear3xx specific devices */ |
22 | &pmx_i2c, | 22 | &spear3xx_pmx_i2c, |
23 | &pmx_ssp, | 23 | &spear3xx_pmx_ssp, |
24 | &pmx_gpio_pin0, | 24 | &spear3xx_pmx_gpio_pin0, |
25 | &pmx_gpio_pin1, | 25 | &spear3xx_pmx_gpio_pin1, |
26 | &pmx_gpio_pin2, | 26 | &spear3xx_pmx_gpio_pin2, |
27 | &pmx_gpio_pin3, | 27 | &spear3xx_pmx_gpio_pin3, |
28 | &pmx_gpio_pin4, | 28 | &spear3xx_pmx_gpio_pin4, |
29 | &pmx_gpio_pin5, | 29 | &spear3xx_pmx_gpio_pin5, |
30 | &pmx_uart0, | 30 | &spear3xx_pmx_uart0, |
31 | 31 | ||
32 | /* spear310 specific devices */ | 32 | /* spear310 specific devices */ |
33 | &pmx_emi_cs_0_1_4_5, | 33 | &spear310_pmx_emi_cs_0_1_4_5, |
34 | &pmx_emi_cs_2_3, | 34 | &spear310_pmx_emi_cs_2_3, |
35 | &pmx_uart1, | 35 | &spear310_pmx_uart1, |
36 | &pmx_uart2, | 36 | &spear310_pmx_uart2, |
37 | &pmx_uart3_4_5, | 37 | &spear310_pmx_uart3_4_5, |
38 | &pmx_fsmc, | 38 | &spear310_pmx_fsmc, |
39 | &pmx_rs485_0_1, | 39 | &spear310_pmx_rs485_0_1, |
40 | &pmx_tdm0, | 40 | &spear310_pmx_tdm0, |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static struct amba_device *amba_devs[] __initdata = { | 43 | static struct amba_device *amba_devs[] __initdata = { |
@@ -58,13 +58,8 @@ static void __init spear310_evb_init(void) | |||
58 | { | 58 | { |
59 | unsigned int i; | 59 | unsigned int i; |
60 | 60 | ||
61 | /* padmux initialization, must be done before spear310_init */ | ||
62 | pmx_driver.mode = NULL; | ||
63 | pmx_driver.devs = pmx_devs; | ||
64 | pmx_driver.devs_count = ARRAY_SIZE(pmx_devs); | ||
65 | |||
66 | /* call spear310 machine init function */ | 61 | /* call spear310 machine init function */ |
67 | spear310_init(); | 62 | spear310_init(NULL, pmx_devs, ARRAY_SIZE(pmx_devs)); |
68 | 63 | ||
69 | /* Add Platform Devices */ | 64 | /* Add Platform Devices */ |
70 | platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs)); | 65 | platform_add_devices(plat_devs, ARRAY_SIZE(plat_devs)); |