Commit 6392f184 authored by Kumar Gala's avatar Kumar Gala

[POWERPC] 83xx: convert boards to use machine_device_initcall

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 277982e2
...@@ -110,15 +110,12 @@ static struct of_device_id mpc832x_ids[] = { ...@@ -110,15 +110,12 @@ static struct of_device_id mpc832x_ids[] = {
static int __init mpc832x_declare_of_platform_devices(void) static int __init mpc832x_declare_of_platform_devices(void)
{ {
if (!machine_is(mpc832x_mds))
return 0;
/* Publish the QE devices */ /* Publish the QE devices */
of_platform_bus_probe(NULL, mpc832x_ids, NULL); of_platform_bus_probe(NULL, mpc832x_ids, NULL);
return 0; return 0;
} }
device_initcall(mpc832x_declare_of_platform_devices); machine_device_initcall(mpc832x_mds, mpc832x_declare_of_platform_devices);
static void __init mpc832x_sys_init_IRQ(void) static void __init mpc832x_sys_init_IRQ(void)
{ {
......
...@@ -63,9 +63,6 @@ static struct spi_board_info mpc832x_spi_boardinfo = { ...@@ -63,9 +63,6 @@ static struct spi_board_info mpc832x_spi_boardinfo = {
static int __init mpc832x_spi_init(void) static int __init mpc832x_spi_init(void)
{ {
if (!machine_is(mpc832x_rdb))
return 0;
par_io_config_pin(3, 0, 3, 0, 1, 0); /* SPI1 MOSI, I/O */ par_io_config_pin(3, 0, 3, 0, 1, 0); /* SPI1 MOSI, I/O */
par_io_config_pin(3, 1, 3, 0, 1, 0); /* SPI1 MISO, I/O */ par_io_config_pin(3, 1, 3, 0, 1, 0); /* SPI1 MISO, I/O */
par_io_config_pin(3, 2, 3, 0, 1, 0); /* SPI1 CLK, I/O */ 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,7 +77,7 @@ static int __init mpc832x_spi_init(void)
mpc83xx_spi_deactivate_cs); mpc83xx_spi_deactivate_cs);
} }
device_initcall(mpc832x_spi_init); machine_device_initcall(mpc832x_rdb, mpc832x_spi_init);
/* ************************************************************************ /* ************************************************************************
* *
...@@ -123,15 +120,12 @@ static struct of_device_id mpc832x_ids[] = { ...@@ -123,15 +120,12 @@ static struct of_device_id mpc832x_ids[] = {
static int __init mpc832x_declare_of_platform_devices(void) static int __init mpc832x_declare_of_platform_devices(void)
{ {
if (!machine_is(mpc832x_rdb))
return 0;
/* Publish the QE devices */ /* Publish the QE devices */
of_platform_bus_probe(NULL, mpc832x_ids, NULL); of_platform_bus_probe(NULL, mpc832x_ids, NULL);
return 0; return 0;
} }
device_initcall(mpc832x_declare_of_platform_devices); machine_device_initcall(mpc832x_rdb, mpc832x_declare_of_platform_devices);
void __init mpc832x_rdb_init_IRQ(void) void __init mpc832x_rdb_init_IRQ(void)
{ {
......
...@@ -115,13 +115,10 @@ static struct of_device_id mpc834x_ids[] = { ...@@ -115,13 +115,10 @@ static struct of_device_id mpc834x_ids[] = {
static int __init mpc834x_declare_of_platform_devices(void) static int __init mpc834x_declare_of_platform_devices(void)
{ {
if (!machine_is(mpc834x_mds))
return 0;
of_platform_bus_probe(NULL, mpc834x_ids, NULL); of_platform_bus_probe(NULL, mpc834x_ids, NULL);
return 0; return 0;
} }
device_initcall(mpc834x_declare_of_platform_devices); machine_device_initcall(mpc834x_mds, mpc834x_declare_of_platform_devices);
/* /*
* Called very early, MMU is off, device-tree isn't unflattened * Called very early, MMU is off, device-tree isn't unflattened
......
...@@ -141,15 +141,12 @@ static struct of_device_id mpc836x_ids[] = { ...@@ -141,15 +141,12 @@ static struct of_device_id mpc836x_ids[] = {
static int __init mpc836x_declare_of_platform_devices(void) static int __init mpc836x_declare_of_platform_devices(void)
{ {
if (!machine_is(mpc836x_mds))
return 0;
/* Publish the QE devices */ /* Publish the QE devices */
of_platform_bus_probe(NULL, mpc836x_ids, NULL); of_platform_bus_probe(NULL, mpc836x_ids, NULL);
return 0; return 0;
} }
device_initcall(mpc836x_declare_of_platform_devices); machine_device_initcall(mpc836x_mds, mpc836x_declare_of_platform_devices);
static void __init mpc836x_mds_init_IRQ(void) static void __init mpc836x_mds_init_IRQ(void)
{ {
......
...@@ -50,15 +50,12 @@ static struct of_device_id mpc837x_ids[] = { ...@@ -50,15 +50,12 @@ static struct of_device_id mpc837x_ids[] = {
static int __init mpc837x_declare_of_platform_devices(void) static int __init mpc837x_declare_of_platform_devices(void)
{ {
if (!machine_is(mpc837x_mds))
return 0;
/* Publish of_device */ /* Publish of_device */
of_platform_bus_probe(NULL, mpc837x_ids, NULL); of_platform_bus_probe(NULL, mpc837x_ids, NULL);
return 0; return 0;
} }
device_initcall(mpc837x_declare_of_platform_devices); machine_device_initcall(mpc837x_mds, mpc837x_declare_of_platform_devices);
static void __init mpc837x_mds_init_IRQ(void) static void __init mpc837x_mds_init_IRQ(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment