[POWERPC] Fix mpc52xx serial driver to work for arch/ppc again

Subsystems: the rest

2 messages, 2 authors, 2007-01-02 · open the first message on its own page

[POWERPC] Fix mpc52xx serial driver to work for arch/ppc again

From: <hidden>
Date: 2007-01-02 22:45:45

From: Grant Likely <redacted>

The mpc52xx_uart_of_enumerate() function was added when adding 52xx
support to arch/powerpc, but it must not be called for arch/ppc.

Signed-off-by: Grant Likely <redacted>
---

Please include for .20; without this patch you cannot build an arch/ppc
kernel for the lite52xx.

 drivers/serial/mpc52xx_uart.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
index 9d11a75..3c4b6c2 100644
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -789,7 +789,9 @@ static struct console mpc52xx_console = 
 static int __init
 mpc52xx_console_init(void)
 {
+#if defined(CONFIG_PPC_MERGE)
 	mpc52xx_uart_of_enumerate();
+#endif
 	register_console(&mpc52xx_console);
 	return 0;
 }
-- 
1.4.3.rc2.g0503

Re: [POWERPC] Fix mpc52xx serial driver to work for arch/ppc again

From: Sylvain Munaut <hidden>
Date: 2007-01-02 22:54:24

grant.likely@secretlab.ca wrote:
From: Grant Likely <redacted>

The mpc52xx_uart_of_enumerate() function was added when adding 52xx
support to arch/powerpc, but it must not be called for arch/ppc.

Signed-off-by: Grant Likely <redacted>
  
Acked-by: Sylvain Munaut <redacted>


obvious compile fix.
quoted hunk
---

Please include for .20; without this patch you cannot build an arch/ppc
kernel for the lite52xx.

 drivers/serial/mpc52xx_uart.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
index 9d11a75..3c4b6c2 100644
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -789,7 +789,9 @@ static struct console mpc52xx_console = 
 static int __init
 mpc52xx_console_init(void)
 {
+#if defined(CONFIG_PPC_MERGE)
 	mpc52xx_uart_of_enumerate();
+#endif
 	register_console(&mpc52xx_console);
 	return 0;
 }
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help