diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-01-15 10:47:10 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-23 20:32:39 -0500 |
commit | 6392f1845b54eefbfa5f3569155451949d250b6d (patch) | |
tree | 198bb90249b1bf95692fc6b9eee25ab8372edceb /arch/powerpc/platforms | |
parent | 277982e2d8a240576359e44b3f98c490861fc1ad (diff) |
[POWERPC] 83xx: convert boards to use machine_device_initcall
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_mds.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc832x_rdb.c | 10 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_mds.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_mds.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc837x_mds.c | 5 |
5 files changed, 6 insertions, 24 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc832x_mds.c b/arch/powerpc/platforms/83xx/mpc832x_mds.c index 1e570bb947fc..dbdd4adef645 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc832x_mds.c | |||
@@ -110,15 +110,12 @@ static struct of_device_id mpc832x_ids[] = { | |||
110 | 110 | ||
111 | static int __init mpc832x_declare_of_platform_devices(void) | 111 | static int __init mpc832x_declare_of_platform_devices(void) |
112 | { | 112 | { |
113 | if (!machine_is(mpc832x_mds)) | ||
114 | return 0; | ||
115 | |||
116 | /* Publish the QE devices */ | 113 | /* Publish the QE devices */ |
117 | of_platform_bus_probe(NULL, mpc832x_ids, NULL); | 114 | of_platform_bus_probe(NULL, mpc832x_ids, NULL); |
118 | 115 | ||
119 | return 0; | 116 | return 0; |
120 | } | 117 | } |
121 | device_initcall(mpc832x_declare_of_platform_devices); | 118 | machine_device_initcall(mpc832x_mds, mpc832x_declare_of_platform_devices); |
122 | 119 | ||
123 | static void __init mpc832x_sys_init_IRQ(void) | 120 | static void __init mpc832x_sys_init_IRQ(void) |
124 | { | 121 | { |
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c index ffb2e9361ce3..5fddd2285abb 100644 --- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c | |||
@@ -63,9 +63,6 @@ static struct spi_board_info mpc832x_spi_boardinfo = { | |||
63 | 63 | ||
64 | static int __init mpc832x_spi_init(void) | 64 | static int __init mpc832x_spi_init(void) |
65 | { | 65 | { |
66 | if (!machine_is(mpc832x_rdb)) | ||
67 | return 0; | ||
68 | |||
69 | par_io_config_pin(3, 0, 3, 0, 1, 0); /* SPI1 MOSI, I/O */ | 66 | par_io_config_pin(3, 0, 3, 0, 1, 0); /* SPI1 MOSI, I/O */ |
70 | par_io_config_pin(3, 1, 3, 0, 1, 0); /* SPI1 MISO, I/O */ | 67 | par_io_config_pin(3, 1, 3, 0, 1, 0); /* SPI1 MISO, I/O */ |
71 | par_io_config_pin(3, 2, 3, 0, 1, 0); /* SPI1 CLK, I/O */ | 68 | par_io_config_pin(3, 2, 3, 0, 1, 0); /* SPI1 CLK, I/O */ |
@@ -80,7 +77,7 @@ static int __init mpc832x_spi_init(void) | |||
80 | mpc83xx_spi_deactivate_cs); | 77 | mpc83xx_spi_deactivate_cs); |
81 | } | 78 | } |
82 | 79 | ||
83 | device_initcall(mpc832x_spi_init); | 80 | machine_device_initcall(mpc832x_rdb, mpc832x_spi_init); |
84 | 81 | ||
85 | /* ************************************************************************ | 82 | /* ************************************************************************ |
86 | * | 83 | * |
@@ -123,15 +120,12 @@ static struct of_device_id mpc832x_ids[] = { | |||
123 | 120 | ||
124 | static int __init mpc832x_declare_of_platform_devices(void) | 121 | static int __init mpc832x_declare_of_platform_devices(void) |
125 | { | 122 | { |
126 | if (!machine_is(mpc832x_rdb)) | ||
127 | return 0; | ||
128 | |||
129 | /* Publish the QE devices */ | 123 | /* Publish the QE devices */ |
130 | of_platform_bus_probe(NULL, mpc832x_ids, NULL); | 124 | of_platform_bus_probe(NULL, mpc832x_ids, NULL); |
131 | 125 | ||
132 | return 0; | 126 | return 0; |
133 | } | 127 | } |
134 | device_initcall(mpc832x_declare_of_platform_devices); | 128 | machine_device_initcall(mpc832x_rdb, mpc832x_declare_of_platform_devices); |
135 | 129 | ||
136 | void __init mpc832x_rdb_init_IRQ(void) | 130 | void __init mpc832x_rdb_init_IRQ(void) |
137 | { | 131 | { |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index 459fb7227e76..2b8a0a3f8557 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -115,13 +115,10 @@ static struct of_device_id mpc834x_ids[] = { | |||
115 | 115 | ||
116 | static int __init mpc834x_declare_of_platform_devices(void) | 116 | static int __init mpc834x_declare_of_platform_devices(void) |
117 | { | 117 | { |
118 | if (!machine_is(mpc834x_mds)) | ||
119 | return 0; | ||
120 | |||
121 | of_platform_bus_probe(NULL, mpc834x_ids, NULL); | 118 | of_platform_bus_probe(NULL, mpc834x_ids, NULL); |
122 | return 0; | 119 | return 0; |
123 | } | 120 | } |
124 | device_initcall(mpc834x_declare_of_platform_devices); | 121 | machine_device_initcall(mpc834x_mds, mpc834x_declare_of_platform_devices); |
125 | 122 | ||
126 | /* | 123 | /* |
127 | * Called very early, MMU is off, device-tree isn't unflattened | 124 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c index 2ac9890b763c..db491ec006e0 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c | |||
@@ -141,15 +141,12 @@ static struct of_device_id mpc836x_ids[] = { | |||
141 | 141 | ||
142 | static int __init mpc836x_declare_of_platform_devices(void) | 142 | static int __init mpc836x_declare_of_platform_devices(void) |
143 | { | 143 | { |
144 | if (!machine_is(mpc836x_mds)) | ||
145 | return 0; | ||
146 | |||
147 | /* Publish the QE devices */ | 144 | /* Publish the QE devices */ |
148 | of_platform_bus_probe(NULL, mpc836x_ids, NULL); | 145 | of_platform_bus_probe(NULL, mpc836x_ids, NULL); |
149 | 146 | ||
150 | return 0; | 147 | return 0; |
151 | } | 148 | } |
152 | device_initcall(mpc836x_declare_of_platform_devices); | 149 | machine_device_initcall(mpc836x_mds, mpc836x_declare_of_platform_devices); |
153 | 150 | ||
154 | static void __init mpc836x_mds_init_IRQ(void) | 151 | static void __init mpc836x_mds_init_IRQ(void) |
155 | { | 152 | { |
diff --git a/arch/powerpc/platforms/83xx/mpc837x_mds.c b/arch/powerpc/platforms/83xx/mpc837x_mds.c index 9cdc32b4fa18..cfd05487f26e 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c | |||
@@ -50,15 +50,12 @@ static struct of_device_id mpc837x_ids[] = { | |||
50 | 50 | ||
51 | static int __init mpc837x_declare_of_platform_devices(void) | 51 | static int __init mpc837x_declare_of_platform_devices(void) |
52 | { | 52 | { |
53 | if (!machine_is(mpc837x_mds)) | ||
54 | return 0; | ||
55 | |||
56 | /* Publish of_device */ | 53 | /* Publish of_device */ |
57 | of_platform_bus_probe(NULL, mpc837x_ids, NULL); | 54 | of_platform_bus_probe(NULL, mpc837x_ids, NULL); |
58 | 55 | ||
59 | return 0; | 56 | return 0; |
60 | } | 57 | } |
61 | device_initcall(mpc837x_declare_of_platform_devices); | 58 | machine_device_initcall(mpc837x_mds, mpc837x_declare_of_platform_devices); |
62 | 59 | ||
63 | static void __init mpc837x_mds_init_IRQ(void) | 60 | static void __init mpc837x_mds_init_IRQ(void) |
64 | { | 61 | { |