config PATA_ALI
        tristate "ALi PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select PATA_TIMINGS
        help
          This option enables support for the ALi ATA interfaces
 
 config PATA_AMD
        tristate "AMD/NVidia PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select PATA_TIMINGS
        help
          This option enables support for the AMD and NVidia PATA
 
 config PATA_ARTOP
        tristate "ARTOP 6210/6260 PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for ARTOP PATA controllers.
 
 
 config PATA_CMD64X
        tristate "CMD64x PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select PATA_TIMINGS
        help
          This option enables support for the CMD64x series chips
 
 config PATA_CYPRESS
        tristate "Cypress CY82C693 PATA support (Very Experimental)"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select PATA_TIMINGS
        help
          This option enables support for the Cypress/Contaq CY82C693
 
 config PATA_HPT37X
        tristate "HPT 370/370A/371/372/374/302 PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for the majority of the later HPT
          PATA controllers via the new ATA layer.
 
 config PATA_HPT3X2N
        tristate "HPT 371N/372N/302N PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for the N variant HPT PATA
          controllers via the new ATA layer.
 
 config PATA_NETCELL
        tristate "NETCELL Revolution RAID support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for the Netcell Revolution RAID
          PATA controller.
 
 config PATA_OPTIDMA
        tristate "OPTI FireStar PATA support (Very Experimental)"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables DMA/PIO support for the later OPTi
          controllers found on some old motherboards and in some
 
 config PATA_PDC2027X
        tristate "Promise PATA 2027x support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for Promise PATA pdc20268 to pdc20277 host adapters.
 
 
 config PATA_PDC_OLD
        tristate "Older Promise PATA controller support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for the Promise 20246, 20262, 20263,
          20265 and 20267 adapters.
 
 config PATA_SC1200
        tristate "SC1200 PATA support"
-       depends on PCI && (X86_32 || COMPILE_TEST)
+       depends on PCI && (X86_32 || COMPILE_TEST) && HAS_IOPORT
        help
          This option enables support for the NatSemi/AMD SC1200 SoC
          companion chip used with the Geode processor family.
 
 config PATA_SERVERWORKS
        tristate "SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This option enables support for the Serverworks OSB4/CSB5/CSB6 and
          HT1000 PATA controllers, via the new ATA layer.
 
 config PATA_LEGACY
        tristate "Legacy ISA PATA support (Experimental)"
-       depends on (ISA || PCI)
+       depends on (ISA || PCI) && HAS_IOPORT
        select PATA_TIMINGS
        help
          This option enables support for ISA/VLB/PCI bus legacy PATA