Commit a73738e9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: comedi: fix build breakages on some platforms

Some platforms do not have virt_to_bus(), so properly depend on
CONFIG_VIRT_TO_BUS for the Comedi drivers that need this function.
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d4620396
...@@ -161,6 +161,7 @@ config COMEDI_PCL730 ...@@ -161,6 +161,7 @@ config COMEDI_PCL730
config COMEDI_PCL812 config COMEDI_PCL812
tristate "Advantech PCL-812/813 and ADlink ACL-8112/8113/8113/8216" tristate "Advantech PCL-812/813 and ADlink ACL-8112/8113/8113/8216"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for Advantech PCL-812/PG, PCL-813/B, ADLink Enable support for Advantech PCL-812/PG, PCL-813/B, ADLink
...@@ -172,6 +173,7 @@ config COMEDI_PCL812 ...@@ -172,6 +173,7 @@ config COMEDI_PCL812
config COMEDI_PCL816 config COMEDI_PCL816
tristate "Advantech PCL-814 and PCL-816 ISA card support" tristate "Advantech PCL-814 and PCL-816 ISA card support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for Advantech PCL-814 and PCL-816 ISA cards Enable support for Advantech PCL-814 and PCL-816 ISA cards
...@@ -181,6 +183,7 @@ config COMEDI_PCL816 ...@@ -181,6 +183,7 @@ config COMEDI_PCL816
config COMEDI_PCL818 config COMEDI_PCL818
tristate "Advantech PCL-718 and PCL-818 ISA card support" tristate "Advantech PCL-718 and PCL-818 ISA card support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for Advantech PCL-818 ISA cards Enable support for Advantech PCL-818 ISA cards
...@@ -270,6 +273,7 @@ config COMEDI_DAS800 ...@@ -270,6 +273,7 @@ config COMEDI_DAS800
config COMEDI_DAS1800 config COMEDI_DAS1800
tristate "DAS1800 and compatible ISA card support" tristate "DAS1800 and compatible ISA card support"
depends on VIRT_TO_BUS
select COMEDI_FC select COMEDI_FC
default N default N
---help--- ---help---
...@@ -341,6 +345,7 @@ config COMEDI_DT2817 ...@@ -341,6 +345,7 @@ config COMEDI_DT2817
config COMEDI_DT282X config COMEDI_DT282X
tristate "Data Translation DT2821 series and DT-EZ ISA card support" tristate "Data Translation DT2821 series and DT-EZ ISA card support"
select COMEDI_FC select COMEDI_FC
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for Data Translation DT2821 series including DT-EZ Enable support for Data Translation DT2821 series including DT-EZ
...@@ -420,6 +425,7 @@ config COMEDI_ADQ12B ...@@ -420,6 +425,7 @@ config COMEDI_ADQ12B
config COMEDI_NI_AT_A2150 config COMEDI_NI_AT_A2150
tristate "NI AT-A2150 ISA card support" tristate "NI AT-A2150 ISA card support"
depends on COMEDI_NI_COMMON depends on COMEDI_NI_COMMON
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for National Instruments AT-A2150 cards Enable support for National Instruments AT-A2150 cards
...@@ -537,6 +543,7 @@ if COMEDI_PCI_DRIVERS && PCI ...@@ -537,6 +543,7 @@ if COMEDI_PCI_DRIVERS && PCI
config COMEDI_ADDI_APCI_035 config COMEDI_ADDI_APCI_035
tristate "ADDI-DATA APCI_035 support" tristate "ADDI-DATA APCI_035 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_035 cards Enable support for ADDI-DATA APCI_035 cards
...@@ -546,6 +553,7 @@ config COMEDI_ADDI_APCI_035 ...@@ -546,6 +553,7 @@ config COMEDI_ADDI_APCI_035
config COMEDI_ADDI_APCI_1032 config COMEDI_ADDI_APCI_1032
tristate "ADDI-DATA APCI_1032 support" tristate "ADDI-DATA APCI_1032 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_1032 cards Enable support for ADDI-DATA APCI_1032 cards
...@@ -555,6 +563,7 @@ config COMEDI_ADDI_APCI_1032 ...@@ -555,6 +563,7 @@ config COMEDI_ADDI_APCI_1032
config COMEDI_ADDI_APCI_1500 config COMEDI_ADDI_APCI_1500
tristate "ADDI-DATA APCI_1500 support" tristate "ADDI-DATA APCI_1500 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_1500 cards Enable support for ADDI-DATA APCI_1500 cards
...@@ -564,6 +573,7 @@ config COMEDI_ADDI_APCI_1500 ...@@ -564,6 +573,7 @@ config COMEDI_ADDI_APCI_1500
config COMEDI_ADDI_APCI_1516 config COMEDI_ADDI_APCI_1516
tristate "ADDI-DATA APCI_1516 support" tristate "ADDI-DATA APCI_1516 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_1516 cards Enable support for ADDI-DATA APCI_1516 cards
...@@ -573,6 +583,7 @@ config COMEDI_ADDI_APCI_1516 ...@@ -573,6 +583,7 @@ config COMEDI_ADDI_APCI_1516
config COMEDI_ADDI_APCI_1564 config COMEDI_ADDI_APCI_1564
tristate "ADDI-DATA APCI_1564 support" tristate "ADDI-DATA APCI_1564 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_1564 cards Enable support for ADDI-DATA APCI_1564 cards
...@@ -582,6 +593,7 @@ config COMEDI_ADDI_APCI_1564 ...@@ -582,6 +593,7 @@ config COMEDI_ADDI_APCI_1564
config COMEDI_ADDI_APCI_16XX config COMEDI_ADDI_APCI_16XX
tristate "ADDI-DATA APCI_16xx support" tristate "ADDI-DATA APCI_16xx support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_16xx cards Enable support for ADDI-DATA APCI_16xx cards
...@@ -591,6 +603,7 @@ config COMEDI_ADDI_APCI_16XX ...@@ -591,6 +603,7 @@ config COMEDI_ADDI_APCI_16XX
config COMEDI_ADDI_APCI_2016 config COMEDI_ADDI_APCI_2016
tristate "ADDI-DATA APCI_2016 support" tristate "ADDI-DATA APCI_2016 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_2016 cards Enable support for ADDI-DATA APCI_2016 cards
...@@ -600,6 +613,7 @@ config COMEDI_ADDI_APCI_2016 ...@@ -600,6 +613,7 @@ config COMEDI_ADDI_APCI_2016
config COMEDI_ADDI_APCI_2032 config COMEDI_ADDI_APCI_2032
tristate "ADDI-DATA APCI_2032 support" tristate "ADDI-DATA APCI_2032 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_2032 cards Enable support for ADDI-DATA APCI_2032 cards
...@@ -609,6 +623,7 @@ config COMEDI_ADDI_APCI_2032 ...@@ -609,6 +623,7 @@ config COMEDI_ADDI_APCI_2032
config COMEDI_ADDI_APCI_2200 config COMEDI_ADDI_APCI_2200
tristate "ADDI-DATA APCI_2200 support" tristate "ADDI-DATA APCI_2200 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_2200 cards Enable support for ADDI-DATA APCI_2200 cards
...@@ -618,6 +633,7 @@ config COMEDI_ADDI_APCI_2200 ...@@ -618,6 +633,7 @@ config COMEDI_ADDI_APCI_2200
config COMEDI_ADDI_APCI_3001 config COMEDI_ADDI_APCI_3001
tristate "ADDI-DATA APCI_3001 support" tristate "ADDI-DATA APCI_3001 support"
depends on VIRT_TO_BUS
select COMEDI_FC select COMEDI_FC
default N default N
---help--- ---help---
...@@ -628,6 +644,7 @@ config COMEDI_ADDI_APCI_3001 ...@@ -628,6 +644,7 @@ config COMEDI_ADDI_APCI_3001
config COMEDI_ADDI_APCI_3120 config COMEDI_ADDI_APCI_3120
tristate "ADDI-DATA APCI_3520 support" tristate "ADDI-DATA APCI_3520 support"
depends on VIRT_TO_BUS
select COMEDI_FC select COMEDI_FC
default N default N
---help--- ---help---
...@@ -638,6 +655,7 @@ config COMEDI_ADDI_APCI_3120 ...@@ -638,6 +655,7 @@ config COMEDI_ADDI_APCI_3120
config COMEDI_ADDI_APCI_3501 config COMEDI_ADDI_APCI_3501
tristate "ADDI-DATA APCI_3501 support" tristate "ADDI-DATA APCI_3501 support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_3501 cards Enable support for ADDI-DATA APCI_3501 cards
...@@ -647,6 +665,7 @@ config COMEDI_ADDI_APCI_3501 ...@@ -647,6 +665,7 @@ config COMEDI_ADDI_APCI_3501
config COMEDI_ADDI_APCI_3XXX config COMEDI_ADDI_APCI_3XXX
tristate "ADDI-DATA APCI_3xxx support" tristate "ADDI-DATA APCI_3xxx support"
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADDI-DATA APCI_3xxx cards Enable support for ADDI-DATA APCI_3xxx cards
...@@ -713,6 +732,7 @@ config COMEDI_ADL_PCI9111 ...@@ -713,6 +732,7 @@ config COMEDI_ADL_PCI9111
config COMEDI_ADL_PCI9118 config COMEDI_ADL_PCI9118
tristate "ADLink PCI-9118DG, PCI-9118HG, PCI-9118HR support" tristate "ADLink PCI-9118DG, PCI-9118HG, PCI-9118HR support"
select COMEDI_FC select COMEDI_FC
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for ADlink PCI-9118DG, PCI-9118HG, PCI-9118HR cards Enable support for ADlink PCI-9118DG, PCI-9118HG, PCI-9118HR cards
...@@ -1288,6 +1308,7 @@ config COMEDI_NI_LABPC ...@@ -1288,6 +1308,7 @@ config COMEDI_NI_LABPC
depends on COMEDI_MITE depends on COMEDI_MITE
select COMEDI_8255 select COMEDI_8255
select COMEDI_FC select COMEDI_FC
depends on VIRT_TO_BUS
default N default N
---help--- ---help---
Enable support for National Instruments Lab-PC and compatibles Enable support for National Instruments Lab-PC and compatibles
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment