8xx: Use machine_*_initcall() hooks in platform code
Subsystems (3)
PATCH 1/2 8xx: Use machine_*_initcall() hooks in platform code
From: Grant Likely <[email protected]>
---
arch/powerpc/platforms/8xx/ep88xc.c | 5 ++--- arch/powerpc/platforms/8xx/mpc86xads_setup.c | 5 ++--- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-)
arch/powerpc/platforms/8xx/ep88xc.c +2 -3
@@ -155,12 +155,11 @@ static struct of_device_id __initdata of_bus_ids[] = {static int __init declare_of_platform_devices (void ) {/* Publish the QE devices */ -if (machine_is (ep88xc)) -of_platform_bus_probe (NULL , of_bus_ids,NULL ); +of_platform_bus_probe (NULL , of_bus_ids,NULL );return 0 ; } -device_initcall (declare_of_platform_devices); +machine_device_initcall (ep88xc, declare_of_platform_devices);define_machine (ep88xc) { .name = "Embedded Planet EP88xC",
arch/powerpc/platforms/8xx/mpc86xads_setup.c +2 -3
@@ -128,12 +128,11 @@ static struct of_device_id __initdata of_bus_ids[] = {static int __init declare_of_platform_devices (void ) { -if (machine_is (mpc86x_ads)) -of_platform_bus_probe (NULL , of_bus_ids,NULL ); +of_platform_bus_probe (NULL , of_bus_ids,NULL );return 0 ; } -device_initcall (declare_of_platform_devices); +machine_device_initcall (mpc86x_ads, declare_of_platform_devices);define_machine (mpc86x_ads) { .name = "MPC86x ADS",
arch/powerpc/platforms/8xx/mpc885ads_setup.c +2 -3
@@ -264,12 +264,11 @@ static struct of_device_id __initdata of_bus_ids[] = {static int __init declare_of_platform_devices (void ) {/* Publish the QE devices */ -if (machine_is (mpc885_ads)) -of_platform_bus_probe (NULL , of_bus_ids,NULL ); +of_platform_bus_probe (NULL , of_bus_ids,NULL );return 0 ; } -device_initcall (declare_of_platform_devices); +machine_device_initcall (mpc885_ads, declare_of_platform_devices);define_machine (mpc885_ads) { .name = "Freescale MPC885 ADS",
PATCH 2/2 8xxx and embedded6xx: Use machine_*_initcall() hooks in platform code
From: Grant Likely <[email protected]>
---
arch/powerpc/platforms/82xx/mpc8272_ads.c | 5 +---- arch/powerpc/platforms/82xx/pq2fads.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 ++--------- arch/powerpc/platforms/83xx/mpc834x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc836x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc837x_mds.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_ads.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 6 +----- arch/powerpc/platforms/85xx/mpc85xx_mds.c | 5 +---- arch/powerpc/platforms/embedded6xx/ls_uart.c | 5 +---- 11 files changed, 12 insertions(+), 50 deletions(-)
arch/powerpc/platforms/82xx/mpc8272_ads.c +1 -4
@@ -165,14 +165,11 @@ static struct of_device_id __initdata of_bus_ids[] = {static int __init declare_of_platform_devices (void ) { -if (!machine_is (mpc8272_ads)) -return 0 ; -/* Publish the QE devices */ of_platform_bus_probe (NULL , of_bus_ids,NULL );return 0 ; } -device_initcall (declare_of_platform_devices); +machine_device_initcall (mpc8272_ads, declare_of_platform_devices);/* * Called very early, device-tree isn't unflattened
arch/powerpc/platforms/82xx/pq2fads.c +1 -4
@@ -176,14 +176,11 @@ static struct of_device_id __initdata of_bus_ids[] = {static int __init declare_of_platform_devices (void ) { -if (!machine_is (pq2fads)) -return 0 ; -/* Publish the QE devices */ of_platform_bus_probe (NULL , of_bus_ids,NULL );return 0 ; } -device_initcall (declare_of_platform_devices); +machine_device_initcall (pq2fads, declare_of_platform_devices);define_machine (pq2fads) {
arch/powerpc/platforms/83xx/mpc832x_mds.c +1 -4
@@ -110,15 +110,12 @@ static struct of_device_id mpc832x_ids[] = {static int __init mpc832x_declare_of_platform_devices (void ) { -if (!machine_is (mpc832x_mds)) -return 0 ; -/* Publish the QE devices */ of_platform_bus_probe (NULL , mpc832x_ids,NULL );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 ) {
arch/powerpc/platforms/83xx/mpc832x_rdb.c +2 -9
@@ -63,9 +63,6 @@ static struct spi_board_info mpc832x_spi_boardinfo = {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 ,1 ,3 ,0 ,1 ,0 );/* SPI1 MISO, I/O */ par_io_config_pin (3 ,2 ,3 ,0 ,1 ,0 );/* SPI1 CLK, I/O */
@@ -79,8 +76,7 @@ static int __init mpc832x_spi_init(void) mpc83xx_spi_activate_cs, mpc83xx_spi_deactivate_cs); } - -device_initcall (mpc832x_spi_init); +machine_device_initcall (mpc832x_rdb, mpc832x_spi_init);/* ************************************************************************ *
@@ -123,15 +119,12 @@ static struct of_device_id mpc832x_ids[] = {static int __init mpc832x_declare_of_platform_devices (void ) { -if (!machine_is (mpc832x_rdb)) -return 0 ; -/* Publish the QE devices */ of_platform_bus_probe (NULL , mpc832x_ids,NULL );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 ) {
arch/powerpc/platforms/83xx/mpc834x_mds.c +1 -4
@@ -115,13 +115,10 @@ static struct of_device_id mpc834x_ids[] = {static int __init mpc834x_declare_of_platform_devices (void ) { -if (!machine_is (mpc834x_mds)) -return 0 ; -of_platform_bus_probe (NULL , mpc834x_ids,NULL );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
arch/powerpc/platforms/83xx/mpc836x_mds.c +1 -4
@@ -141,15 +141,12 @@ static struct of_device_id mpc836x_ids[] = {static int __init mpc836x_declare_of_platform_devices (void ) { -if (!machine_is (mpc836x_mds)) -return 0 ; -/* Publish the QE devices */ of_platform_bus_probe (NULL , mpc836x_ids,NULL );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 ) {
arch/powerpc/platforms/83xx/mpc837x_mds.c +1 -4
@@ -50,15 +50,12 @@ static struct of_device_id mpc837x_ids[] = {static int __init mpc837x_declare_of_platform_devices (void ) { -if (!machine_is (mpc837x_mds)) -return 0 ; -/* Publish of_device */ of_platform_bus_probe (NULL , mpc837x_ids,NULL );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 ) {
arch/powerpc/platforms/85xx/mpc85xx_ads.c +1 -4
@@ -233,13 +233,10 @@ static struct of_device_id __initdata of_bus_ids[] = {static int __init declare_of_platform_devices (void ) { -if (!machine_is (mpc85xx_ads)) -return 0 ; -of_platform_bus_probe (NULL , of_bus_ids,NULL );return 0 ; } -device_initcall (declare_of_platform_devices); +machine_device_initcall (mpc85xx_ads, declare_of_platform_devices);/* * Called very early, device-tree isn't unflattened
arch/powerpc/platforms/85xx/mpc85xx_cds.c +1 -5
@@ -222,9 +222,6 @@ static int mpc85xx_cds_8259_attach(void)struct device_node *cascade_node =NULL ;int cascade_irq; -if (!machine_is (mpc85xx_cds)) -return 0 ; -/* Initialize the i8259 controller */ for_each_node_by_type (np,"interrupt-controller" )if (of_device_is_compatible (np,"chrp,iic" )) {
@@ -262,8 +259,7 @@ static int mpc85xx_cds_8259_attach(void) return 0; } - -device_initcall (mpc85xx_cds_8259_attach); +machine_device_initcall (mpc85xx_cds, mpc85xx_cds_8259_attach);#endif /* CONFIG_PPC_I8259 */
arch/powerpc/platforms/85xx/mpc85xx_mds.c +1 -4
@@ -144,15 +144,12 @@ static struct of_device_id mpc85xx_ids[] = {static int __init mpc85xx_publish_devices (void ) { -if (!machine_is (mpc85xx_mds)) -return 0 ; -/* Publish the QE devices */ of_platform_bus_probe (NULL ,mpc85xx_ids,NULL );return 0 ; } -device_initcall (mpc85xx_publish_devices); +machine_device_initcall (mpc85xx_mds, mpc85xx_publish_devices);static void __init mpc85xx_mds_pic_init (void ) {
arch/powerpc/platforms/embedded6xx/ls_uart.c +1 -4
@@ -117,9 +117,6 @@ static int __init ls_uarts_init(void)phys_addr_t phys_addr;int len; -if (!machine_is (linkstation)) -return 0 ; - avr =of_find_node_by_path ("/soc10x/serial@80004500" );if (!avr)return -EINVAL ;
@@ -142,4 +139,4 @@ static int __init ls_uarts_init(void)return 0 ; } -late_initcall (ls_uarts_init); +machine_late_initcall (linkstation, ls_uarts_init);
Re: [PATCH 2/2] [POWERPC] 8xxx and embedded6xx: Use machine_*_initcall() hooks in platform code
Quoted 5 lines · Grant Likely
From: Grant Likely <[email protected]>
Signed-off-by Grant Likely <[email protected]>---
Quoted 11 lines
arch/powerpc/platforms/82xx/mpc8272_ads.c | 5 +---- arch/powerpc/platforms/82xx/pq2fads.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 ++--------- arch/powerpc/platforms/83xx/mpc834x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc836x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc837x_mds.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_ads.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 6 +----- arch/powerpc/platforms/85xx/mpc85xx_mds.c | 5 +---- arch/powerpc/platforms/embedded6xx/ls_uart.c | 5 +----
I believe I got the 83xx and 85xx already. look at my tree.
- k
Re: [PATCH 2/2] [POWERPC] 8xxx and embedded6xx: Use machine_*_initcall() hooks in platform code
Quoted 20 lines · Kumar Gala
Quoted 5 lines · Grant Likely
From: Grant Likely <[email protected]>
Signed-off-by Grant Likely <[email protected]>---
Quoted 11 lines
arch/powerpc/platforms/82xx/mpc8272_ads.c | 5 +---- arch/powerpc/platforms/82xx/pq2fads.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 ++--------- arch/powerpc/platforms/83xx/mpc834x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc836x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc837x_mds.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_ads.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 6 +----- arch/powerpc/platforms/85xx/mpc85xx_mds.c | 5 +---- arch/powerpc/platforms/embedded6xx/ls_uart.c | 5 +----
Quoted 1 line
I believe I got the 83xx and 85xx already. look at my tree.
Okay, I can drop those and repost.
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 2/2] [POWERPC] 8xxx and embedded6xx: Use machine_*_initcall() hooks in platform code
Quoted 21 lines · Grant Likely
Quoted 20 lines · Kumar Gala
Quoted 16 lines · Grant Likely
From: Grant Likely <[email protected]>
Signed-off-by Grant Likely <[email protected]>---
arch/powerpc/platforms/82xx/mpc8272_ads.c | 5 +---- arch/powerpc/platforms/82xx/pq2fads.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 ++--------- arch/powerpc/platforms/83xx/mpc834x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc836x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc837x_mds.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_ads.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 6 +----- arch/powerpc/platforms/85xx/mpc85xx_mds.c | 5 +---- arch/powerpc/platforms/embedded6xx/ls_uart.c | 5 +----
Quoted 3 lines
Quoted 1 line
I believe I got the 83xx and 85xx already. look at my tree.
Okay, I can drop those and repost.
Actually, that's too much work... I'll wait until paulus pulls your tree, rebase and then repost.
/me is lazy.
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 2/2] [POWERPC] 8xxx and embedded6xx: Use machine_*_initcall() hooks in platform code
Quoted 22 lines · Grant Likely
Quoted 21 lines · Grant Likely
Quoted 20 lines · Kumar Gala
Quoted 16 lines · Grant Likely
From: Grant Likely <[email protected]>
Signed-off-by Grant Likely <[email protected]>---
arch/powerpc/platforms/82xx/mpc8272_ads.c | 5 +---- arch/powerpc/platforms/82xx/pq2fads.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 ++--------- arch/powerpc/platforms/83xx/mpc834x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc836x_mds.c | 5 +---- arch/powerpc/platforms/83xx/mpc837x_mds.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_ads.c | 5 +---- arch/powerpc/platforms/85xx/mpc85xx_cds.c | 6 +----- arch/powerpc/platforms/85xx/mpc85xx_mds.c | 5 +---- arch/powerpc/platforms/embedded6xx/ls_uart.c | 5 +----
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
I believe I got the 83xx and 85xx already. look at my tree.
Okay, I can drop those and repost.
Actually, that's too much work... I'll wait until paulus pulls your tree, rebase and then repost.
that's fine.
- k
Kumar Gala
AppliedQuoted 10 lines · Grant Likely
From: Grant Likely <[email protected]>
Signed-off-by Grant Likely <[email protected]>---
arch/powerpc/platforms/8xx/ep88xc.c | 5 ++--- arch/powerpc/platforms/8xx/mpc86xads_setup.c | 5 ++--- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-)
applied.
- k