Skip to contentSkip to conversation

M68k SERIAL_PORT_DFNS only if CONFIG_ISA

PATCH In review Geert Uytterhoeven 2 participants 3 messages Oct 31, 2004 – Nov 7, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 M68k SERIAL_PORT_DFNS only if CONFIG_ISA

M68k serial: Only define SERIAL_PORT_DFNS when CONFIG_ISA is defined. Otherwise the first 4 slots in the 8250 driver are unavailable on non-ISA machines. (from Kars de Jong)

include/asm-m68k/serial.h +2 -0
@@ -74,6 +74,8 @@
 #define EXTRA_SERIAL_PORT_DEFNS
 #endif
 
+#ifdef CONFIG_ISA
 #define SERIAL_PORT_DFNS		\
 	STD_SERIAL_PORT_DEFNS		\
 	EXTRA_SERIAL_PORT_DEFNS
+#endif

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#1 lore raw
Quoted 3 lines · Geert Uytterhoeven

M68k serial: Only define SERIAL_PORT_DFNS when CONFIG_ISA is defined. Otherwise the first 4 slots in the 8250 driver are unavailable on non-ISA machines. (from Kars de Jong)

I won't be applying this patch - you may wish to consider doing this an alternative way once the contents of my BK tree becomes public.

include/asm-*/serial.h is almost dead! Long live serial.h!

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core
#2 lore raw
Quoted 9 lines · Russell King
Quoted 3 lines · Geert Uytterhoeven

M68k serial: Only define SERIAL_PORT_DFNS when CONFIG_ISA is defined. Otherwise the first 4 slots in the 8250 driver are unavailable on non-ISA machines. (from Kars de Jong)

I won't be applying this patch - you may wish to consider doing this an alternative way once the contents of my BK tree becomes public.

include/asm-*/serial.h is almost dead! Long live serial.h!

Geert,

The changes are now in - please look again about defining SERIAL_PORT_DFNS even for the CONFIG_ISA case.

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core