All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/comedi: Add VIRT_TO_BUS dependency to 'fix' build failure
@ 2013-05-12 22:00 Peter Huewe
  2013-05-13  9:45 ` Ian Abbott
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Huewe @ 2013-05-12 22:00 UTC (permalink / raw)
  To: Ian Abbott
  Cc: Mori Hess, Greg Kroah-Hartman, H Hartley Sweeten, devel,
	linux-kernel, Geert Uytterhoeven, Peter Huewe

If the platform does not provide virt_to_bus the ni_labpc.c driver fails to
compile.
In order not to break these builds we have to add a depends on
CONFIG_VIRT_TO_BUS to the affected drivers.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
 drivers/staging/comedi/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/staging/comedi/Kconfig b/drivers/staging/comedi/Kconfig
index 7871579..76ccb90 100644
--- a/drivers/staging/comedi/Kconfig
+++ b/drivers/staging/comedi/Kconfig
@@ -1024,6 +1024,7 @@ config COMEDI_NI_LABPC_PCI
 	tristate "NI Lab-PC PCI-1200 support"
 	select COMEDI_NI_LABPC
 	select COMEDI_MITE
+	depends on VIRT_TO_BUS
 	---help---
 	  Enable support for National Instruments Lab-PC PCI-1200.
 
@@ -1151,6 +1152,7 @@ config COMEDI_NI_DAQ_DIO24_CS
 config COMEDI_NI_LABPC_CS
 	tristate "NI DAQCard-1200 PCMCIA support"
 	select COMEDI_NI_LABPC
+	depends on VIRT_TO_BUS
 	---help---
 	  Enable support for the National Instruments PCMCIA DAQCard-1200
 
@@ -1267,6 +1269,7 @@ config COMEDI_NI_LABPC
 	tristate
 	select COMEDI_8255
 	select COMEDI_FC
+	depends on VIRT_TO_BUS
 
 config COMEDI_NI_TIO
 	tristate
-- 
1.8.1.5


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

end of thread, other threads:[~2013-06-28 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-12 22:00 [PATCH] staging/comedi: Add VIRT_TO_BUS dependency to 'fix' build failure Peter Huewe
2013-05-13  9:45 ` Ian Abbott
2013-05-13 11:02   ` [PATCH] staging: comedi: ni_labpc: fix VIRT_TO_BUS dependency Ian Abbott
2013-05-13 21:28     ` Greg Kroah-Hartman
2013-05-14 10:01       ` Ian Abbott
2013-06-27 16:08         ` [PATCH v2] staging: comedi: ni_labpc: change " Ian Abbott
2013-06-27 16:50           ` Ian Abbott
2013-06-28 12:40             ` Ian Abbott

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.