[PATCH] staging/comedi: Add VIRT_TO_BUS dependency to 'fix' build failure

From: Peter Huewe
Date: Sun May 12 2013 - 17:56:17 EST


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@xxxxxxxxxxxxxx>
Signed-off-by: Peter Huewe <peterhuewe@xxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/