linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] serial: fix Kconfig for Freescale 16550
@ 2011-12-13  0:31 Michael Neuling
  2011-12-13  0:54 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Neuling @ 2011-12-13  0:31 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: Alan Cox, Greg Kroah-Hartman, linux-kernel, sfr, linux-next,
	Steven Rostedt, Michal Marek

next-20111212 breaks with linking a pmac32_defconfig with:
  drivers/built-in.o: In function `fsl8250_handle_irq':
  (.text+0x7ba74): undefined reference to `serial8250_modem_status'
  drivers/built-in.o: In function `fsl8250_handle_irq':
  (.text+0x7baa4): undefined reference to `serial8250_tx_chars'
  drivers/built-in.o: In function `fsl8250_handle_irq':
  (.text+0x7bab4): undefined reference to `serial8250_rx_chars'

Caused by:
  9deaa53 serial: add irq handler for Freescale 16550 errata.

pmac32_defconfig results in SERIAL_8250_FSL=y but SERIAL_8250=m so
8250_fsl.c doesn't link properly.  

This explicitly makes SERIAL_8250_FSL depends on SERIAL_8250=y. 

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
I'm not sure this is the right fix as it seems like a Kconfig bug.  

diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index a1d55c3..c9046de 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -99,7 +99,7 @@ config SERIAL_8250_PNP
 
 config SERIAL_8250_FSL
 	bool
-	depends on SERIAL_8250 && PPC
+	depends on SERIAL_8250=y && PPC
 	default PPC
 
 config SERIAL_8250_HP300

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

end of thread, other threads:[~2011-12-13  2:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13  0:31 [PATCH] serial: fix Kconfig for Freescale 16550 Michael Neuling
2011-12-13  0:54 ` Greg KH
2011-12-13  1:53   ` Michael Neuling
2011-12-13  2:47     ` Paul Gortmaker
2011-12-13  2:58       ` Michael Neuling

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).