linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Broken arch/ppc/8260_io/uart.c
@ 2004-06-17 19:24 Rune Torgersen
  2004-06-20  6:10 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Rune Torgersen @ 2004-06-17 19:24 UTC (permalink / raw)
  To: Tom Rini; +Cc: linuxppc-embedded


The following patch broke compilation of uart.c for cases when SMC2 is
not used
(used to be doen by #define USE_SMC2 0, now is done by #undef USE_SMC2)

This breaks the following line:

#define SCC_NUM_BASE(USE_SMC2 + 1)/* SCC base tty "number" */

The patch:
11 weeks	trini@crashing.org	1.31	Change #if FOO to #ifdef
FOO.

--- 1.30/arch/ppc/8260_io/uart.c2004-06-17 12:19:25 -07:00
+++ 1.31/arch/ppc/8260_io/uart.c2004-06-17 12:19:25 -07:00
@@ -155,7 +155,7 @@
 static struct serial_state rs_table[] = {
 /* UART CLK   PORT          IRQ      FLAGS  NUM   */
 { 0,     0, PROFF_SMC1, SIU_INT_SMC1,   0,    0 },    /* SMC1 ttyS0 */
-#if USE_SMC2
+#ifdef USE_SMC2
 { 0,     0, PROFF_SMC2, SIU_INT_SMC2,   0,    1 },    /* SMC2 ttyS1 */
 #endif
 #ifndef CONFIG_SCC1_ENET
@@ -2565,7 +2565,7 @@
 io->iop_pdird |= 0x00400000;
 io->iop_pdird &= ~0x00800000;
 io->iop_psord &= ~0x00c00000;
-#if USE_SMC2
+#ifdef USE_SMC2
 io->iop_ppara |= 0x00c00000;
 io->iop_pdira |= 0x00400000;
 io->iop_pdira &= ~0x00800000;

Rune Torgersen
System Developer
Innovative Systems LLC
1000 Innovative Drive
Mitchell, SD 57301
Ph: 605-995-6120
www.innovsys.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-20  6:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-17 19:24 Broken arch/ppc/8260_io/uart.c Rune Torgersen
2004-06-20  6:10 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).