@@ -492,6 +492,7 @@ config 21285_WATCHDOG
492492config 977_WATCHDOG
493493 tristate "NetWinder WB83C977 watchdog"
494494 depends on (FOOTBRIDGE && ARCH_NETWINDER) || (ARM && COMPILE_TEST)
495+ depends on HAS_IOPORT
495496 help
496497 Say Y here to include support for the WB977 watchdog included in
497498 NetWinder machines. Alternatively say M to compile the driver as
@@ -1085,7 +1086,7 @@ config ACQUIRE_WDT
10851086
10861087config ADVANTECH_WDT
10871088 tristate "Advantech SBC Watchdog Timer"
1088- depends on X86 || COMPILE_TEST
1089+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
10891090 help
10901091 If you are configuring a Linux kernel for the Advantech single-board
10911092 computer, say `Y' here to support its built-in watchdog timer
@@ -1094,7 +1095,7 @@ config ADVANTECH_WDT
10941095
10951096config ADVANTECH_EC_WDT
10961097 tristate "Advantech Embedded Controller Watchdog Timer"
1097- depends on X86 || COMPILE_TEST
1098+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
10981099 select ISA_BUS_API
10991100 select WATCHDOG_CORE
11001101 help
@@ -1127,7 +1128,7 @@ config ALIM7101_WDT
11271128
11281129config EBC_C384_WDT
11291130 tristate "WinSystems EBC-C384 Watchdog Timer"
1130- depends on X86 || COMPILE_TEST
1131+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
11311132 select ISA_BUS_API
11321133 select WATCHDOG_CORE
11331134 help
@@ -1137,7 +1138,7 @@ config EBC_C384_WDT
11371138
11381139config EXAR_WDT
11391140 tristate "Exar Watchdog Timer"
1140- depends on X86 || COMPILE_TEST
1141+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
11411142 select WATCHDOG_CORE
11421143 help
11431144 Enables watchdog timer support for the watchdog timer present
@@ -1148,7 +1149,7 @@ config EXAR_WDT
11481149
11491150config F71808E_WDT
11501151 tristate "Fintek F718xx, F818xx Super I/O Watchdog"
1151- depends on X86 || COMPILE_TEST
1152+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
11521153 select WATCHDOG_CORE
11531154 help
11541155 This is the driver for the hardware watchdog on the Fintek F71808E,
@@ -1160,7 +1161,7 @@ config F71808E_WDT
11601161
11611162config SP5100_TCO
11621163 tristate "AMD/ATI SP5100 TCO Timer/Watchdog"
1163- depends on (X86 || COMPILE_TEST) && PCI
1164+ depends on (X86 || COMPILE_TEST) && PCI && HAS_IOPORT
11641165 select WATCHDOG_CORE
11651166 help
11661167 Hardware watchdog driver for the AMD/ATI SP5100 chipset. The TCO
@@ -1199,7 +1200,7 @@ config SC520_WDT
11991200
12001201config SBC_FITPC2_WATCHDOG
12011202 tristate "Compulab SBC-FITPC2 watchdog"
1202- depends on X86 || COMPILE_TEST
1203+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
12031204 help
12041205 This is the driver for the built-in watchdog timer on the fit-PC2,
12051206 fit-PC2i, CM-iAM single-board computers made by Compulab.
@@ -1224,15 +1225,15 @@ config SBC_FITPC2_WATCHDOG
12241225
12251226config EUROTECH_WDT
12261227 tristate "Eurotech CPU-1220/1410 Watchdog Timer"
1227- depends on X86 || COMPILE_TEST
1228+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
12281229 help
12291230 Enable support for the watchdog timer on the Eurotech CPU-1220 and
12301231 CPU-1410 cards. These are PC/104 SBCs. Spec sheets and product
12311232 information are at <http://www.eurotech.it/>.
12321233
12331234config IB700_WDT
12341235 tristate "IB700 SBC Watchdog Timer"
1235- depends on X86 || COMPILE_TEST
1236+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
12361237 help
12371238 This is the driver for the hardware watchdog on the IB700 Single
12381239 Board Computer produced by TMC Technology (www.tmc-uk.com). This
@@ -1249,7 +1250,7 @@ config IB700_WDT
12491250
12501251config IBMASR
12511252 tristate "IBM Automatic Server Restart"
1252- depends on X86 || COMPILE_TEST
1253+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
12531254 help
12541255 This is the driver for the IBM Automatic Server Restart watchdog
12551256 timer built-in into some eServer xSeries machines.
@@ -1259,7 +1260,7 @@ config IBMASR
12591260
12601261config WAFER_WDT
12611262 tristate "ICP Single Board Computer Watchdog Timer"
1262- depends on X86 || COMPILE_TEST
1263+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
12631264 help
12641265 This is a driver for the hardware watchdog on the ICP Single
12651266 Board Computer. This driver is working on (at least) the following
@@ -1281,7 +1282,7 @@ config I6300ESB_WDT
12811282
12821283config IE6XX_WDT
12831284 tristate "Intel Atom E6xx Watchdog"
1284- depends on (X86 || COMPILE_TEST) && PCI
1285+ depends on (X86 || COMPILE_TEST) && PCI && HAS_IOPORT
12851286 select WATCHDOG_CORE
12861287 select MFD_CORE
12871288 select LPC_SCH
@@ -1311,6 +1312,7 @@ config ITCO_WDT
13111312 select WATCHDOG_CORE
13121313 depends on I2C || I2C=n
13131314 depends on MFD_INTEL_PMC_BXT || !MFD_INTEL_PMC_BXT
1315+ depends on HAS_IOPORT # for I2C_I801
13141316 select LPC_ICH if !EXPERT
13151317 select I2C_I801 if !EXPERT && I2C
13161318 help
@@ -1341,7 +1343,7 @@ config ITCO_VENDOR_SUPPORT
13411343
13421344config IT8712F_WDT
13431345 tristate "IT8712F (Smart Guardian) Watchdog Timer"
1344- depends on X86 || COMPILE_TEST
1346+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
13451347 help
13461348 This is the driver for the built-in watchdog timer on the IT8712F
13471349 Super I/0 chipset used on many motherboards.
@@ -1354,7 +1356,7 @@ config IT8712F_WDT
13541356
13551357config IT87_WDT
13561358 tristate "IT87 Watchdog Timer"
1357- depends on X86 || COMPILE_TEST
1359+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
13581360 select WATCHDOG_CORE
13591361 help
13601362 This is the driver for the hardware watchdog on the ITE IT8607,
@@ -1402,7 +1404,7 @@ config KEMPLD_WDT
14021404
14031405config SC1200_WDT
14041406 tristate "National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog"
1405- depends on X86 || COMPILE_TEST
1407+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
14061408 help
14071409 This is a driver for National Semiconductor PC87307/PC97307 hardware
14081410 watchdog cards as found on the SC1200. This watchdog is mainly used
@@ -1425,7 +1427,7 @@ config SCx200_WDT
14251427
14261428config PC87413_WDT
14271429 tristate "NS PC87413 watchdog"
1428- depends on X86 || COMPILE_TEST
1430+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
14291431 help
14301432 This is the driver for the hardware watchdog on the PC87413 chipset
14311433 This watchdog simply watches your kernel to make sure it doesn't
@@ -1439,7 +1441,7 @@ config PC87413_WDT
14391441
14401442config NV_TCO
14411443 tristate "nVidia TCO Timer/Watchdog"
1442- depends on (X86 || COMPILE_TEST) && PCI
1444+ depends on (X86 || COMPILE_TEST) && PCI && HAS_IOPORT
14431445 help
14441446 Hardware driver for the TCO timer built into the nVidia Hub family
14451447 (such as the MCP51). The TCO (Total Cost of Ownership) timer is a
@@ -1468,7 +1470,7 @@ config RDC321X_WDT
14681470
14691471config 60XX_WDT
14701472 tristate "SBC-60XX Watchdog Timer"
1471- depends on X86 || COMPILE_TEST
1473+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
14721474 help
14731475 This driver can be used with the watchdog timer found on some
14741476 single board computers, namely the 6010 PII based computer.
@@ -1508,15 +1510,15 @@ config SBC7240_WDT
15081510
15091511config CPU5_WDT
15101512 tristate "SMA CPU5 Watchdog"
1511- depends on X86 || COMPILE_TEST
1513+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
15121514 help
15131515 TBD.
15141516 To compile this driver as a module, choose M here: the
15151517 module will be called cpu5wdt.
15161518
15171519config SMSC_SCH311X_WDT
15181520 tristate "SMSC SCH311X Watchdog Timer"
1519- depends on X86 || COMPILE_TEST
1521+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
15201522 help
15211523 This is the driver for the hardware watchdog timer on the
15221524 SMSC SCH3112, SCH3114 and SCH3116 Super IO chipset
@@ -1528,7 +1530,7 @@ config SMSC_SCH311X_WDT
15281530
15291531config SMSC37B787_WDT
15301532 tristate "Winbond SMsC37B787 Watchdog Timer"
1531- depends on X86 || COMPILE_TEST
1533+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
15321534 help
15331535 This is the driver for the hardware watchdog component on the
15341536 Winbond SMsC37B787 chipset as used on the NetRunner Mainboard
@@ -1574,7 +1576,7 @@ config VIA_WDT
15741576
15751577config W83627HF_WDT
15761578 tristate "Watchdog timer for W83627HF/W83627DHG and compatibles"
1577- depends on X86 || COMPILE_TEST
1579+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
15781580 select WATCHDOG_CORE
15791581 help
15801582 This is the driver for the hardware watchdog on the following
@@ -1604,7 +1606,7 @@ config W83627HF_WDT
16041606
16051607config W83877F_WDT
16061608 tristate "W83877F (EMACS) Watchdog Timer"
1607- depends on X86 || COMPILE_TEST
1609+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
16081610 help
16091611 This is the driver for the hardware watchdog on the W83877F chipset
16101612 as used in EMACS PC-104 motherboards (and likely others). This
@@ -1619,7 +1621,7 @@ config W83877F_WDT
16191621
16201622config W83977F_WDT
16211623 tristate "W83977F (PCM-5335) Watchdog Timer"
1622- depends on X86 || COMPILE_TEST
1624+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
16231625 help
16241626 This is the driver for the hardware watchdog on the W83977F I/O chip
16251627 as used in AAEON's PCM-5335 SBC (and likely others). This
@@ -1632,7 +1634,7 @@ config W83977F_WDT
16321634
16331635config MACHZ_WDT
16341636 tristate "ZF MachZ Watchdog"
1635- depends on X86 || COMPILE_TEST
1637+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
16361638 help
16371639 If you are using a ZF Micro MachZ processor, say Y here, otherwise
16381640 N. This is the driver for the watchdog timer built-in on that
@@ -1645,7 +1647,7 @@ config MACHZ_WDT
16451647
16461648config SBC_EPX_C3_WATCHDOG
16471649 tristate "Winsystems SBC EPX-C3 watchdog"
1648- depends on X86 || COMPILE_TEST
1650+ depends on ( X86 || COMPILE_TEST) && HAS_IOPORT
16491651 help
16501652 This is the driver for the built-in watchdog timer on the EPX-C3
16511653 Single-board computer made by Winsystems, Inc.
@@ -2207,7 +2209,7 @@ comment "PCI-based Watchdog Cards"
22072209
22082210config PCIPCWATCHDOG
22092211 tristate "Berkshire Products PCI-PC Watchdog"
2210- depends on PCI
2212+ depends on PCI && HAS_IOPORT
22112213 help
22122214 This is the driver for the Berkshire Products PCI-PC Watchdog card.
22132215 This card simply watches your kernel to make sure it doesn't freeze,
@@ -2222,7 +2224,7 @@ config PCIPCWATCHDOG
22222224
22232225config WDTPCI
22242226 tristate "PCI-WDT500/501 Watchdog timer"
2225- depends on PCI
2227+ depends on PCI && HAS_IOPORT
22262228 help
22272229 If you have a PCI-WDT500/501 watchdog board, say Y here, otherwise N.
22282230
0 commit comments