Browse Source

hwmon: Avoid building drivers for powerpc that read/write ISA addresses

A modprobe of hwmon drivers that read/write ISA addresses on a powerpc results
in a kernel Oops. These reads/writes are being done via the inb()/in_8() and
outb()/out_8() macros.

Prevent these drivers from being built for powerpc.

Signed-off-by: Dean Nelson <dnelson@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Dean Nelson 14 years ago
parent
commit
746cdfbf01
1 changed files with 13 additions and 2 deletions
  1. 13 2
      drivers/hwmon/Kconfig

+ 13 - 2
drivers/hwmon/Kconfig

@@ -335,6 +335,7 @@ config SENSORS_I5K_AMB
 
 
 config SENSORS_F71805F
 config SENSORS_F71805F
 	tristate "Fintek F71805F/FG, F71806F/FG and F71872F/FG"
 	tristate "Fintek F71805F/FG, F71806F/FG and F71872F/FG"
+	depends on !PPC
 	help
 	help
 	  If you say yes here you get support for hardware monitoring
 	  If you say yes here you get support for hardware monitoring
 	  features of the Fintek F71805F/FG, F71806F/FG and F71872F/FG
 	  features of the Fintek F71805F/FG, F71806F/FG and F71872F/FG
@@ -345,6 +346,7 @@ config SENSORS_F71805F
 
 
 config SENSORS_F71882FG
 config SENSORS_F71882FG
 	tristate "Fintek F71882FG and compatibles"
 	tristate "Fintek F71882FG and compatibles"
+	depends on !PPC
 	help
 	help
 	  If you say yes here you get support for hardware monitoring
 	  If you say yes here you get support for hardware monitoring
 	  features of many Fintek Super-I/O (LPC) chips. The currently
 	  features of many Fintek Super-I/O (LPC) chips. The currently
@@ -468,6 +470,7 @@ config SENSORS_IBMPEX
 
 
 config SENSORS_IT87
 config SENSORS_IT87
 	tristate "ITE IT87xx and compatibles"
 	tristate "ITE IT87xx and compatibles"
+	depends on !PPC
 	select HWMON_VID
 	select HWMON_VID
 	help
 	help
 	  If you say yes here you get support for ITE IT8705F, IT8712F,
 	  If you say yes here you get support for ITE IT8705F, IT8712F,
@@ -824,6 +827,7 @@ config SENSORS_NTC_THERMISTOR
 
 
 config SENSORS_PC87360
 config SENSORS_PC87360
 	tristate "National Semiconductor PC87360 family"
 	tristate "National Semiconductor PC87360 family"
+	depends on !PPC
 	select HWMON_VID
 	select HWMON_VID
 	help
 	help
 	  If you say yes here you get access to the hardware monitoring
 	  If you say yes here you get access to the hardware monitoring
@@ -837,6 +841,7 @@ config SENSORS_PC87360
 
 
 config SENSORS_PC87427
 config SENSORS_PC87427
 	tristate "National Semiconductor PC87427"
 	tristate "National Semiconductor PC87427"
+	depends on !PPC
 	help
 	help
 	  If you say yes here you get access to the hardware monitoring
 	  If you say yes here you get access to the hardware monitoring
 	  functions of the National Semiconductor PC87427 Super-I/O chip.
 	  functions of the National Semiconductor PC87427 Super-I/O chip.
@@ -928,7 +933,7 @@ config SENSORS_SMM665
 
 
 config SENSORS_DME1737
 config SENSORS_DME1737
 	tristate "SMSC DME1737, SCH311x and compatibles"
 	tristate "SMSC DME1737, SCH311x and compatibles"
-	depends on I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL && !PPC
 	select HWMON_VID
 	select HWMON_VID
 	help
 	help
 	  If you say yes here you get support for the hardware monitoring
 	  If you say yes here you get support for the hardware monitoring
@@ -970,6 +975,7 @@ config SENSORS_EMC6W201
 
 
 config SENSORS_SMSC47M1
 config SENSORS_SMSC47M1
 	tristate "SMSC LPC47M10x and compatibles"
 	tristate "SMSC LPC47M10x and compatibles"
+	depends on !PPC
 	help
 	help
 	  If you say yes here you get support for the integrated fan
 	  If you say yes here you get support for the integrated fan
 	  monitoring and control capabilities of the SMSC LPC47B27x,
 	  monitoring and control capabilities of the SMSC LPC47B27x,
@@ -1003,7 +1009,7 @@ config SENSORS_SMSC47M192
 
 
 config SENSORS_SMSC47B397
 config SENSORS_SMSC47B397
 	tristate "SMSC LPC47B397-NC"
 	tristate "SMSC LPC47B397-NC"
-	depends on EXPERIMENTAL
+	depends on EXPERIMENTAL && !PPC
 	help
 	help
 	  If you say yes here you get support for the SMSC LPC47B397-NC
 	  If you say yes here you get support for the SMSC LPC47B397-NC
 	  sensor chip.
 	  sensor chip.
@@ -1017,6 +1023,7 @@ config SENSORS_SCH56XX_COMMON
 
 
 config SENSORS_SCH5627
 config SENSORS_SCH5627
 	tristate "SMSC SCH5627"
 	tristate "SMSC SCH5627"
+	depends on !PPC
 	select SENSORS_SCH56XX_COMMON
 	select SENSORS_SCH56XX_COMMON
 	help
 	help
 	  If you say yes here you get support for the hardware monitoring
 	  If you say yes here you get support for the hardware monitoring
@@ -1027,6 +1034,7 @@ config SENSORS_SCH5627
 
 
 config SENSORS_SCH5636
 config SENSORS_SCH5636
 	tristate "SMSC SCH5636"
 	tristate "SMSC SCH5636"
+	depends on !PPC
 	select SENSORS_SCH56XX_COMMON
 	select SENSORS_SCH56XX_COMMON
 	help
 	help
 	  SMSC SCH5636 Super I/O chips include an embedded microcontroller for
 	  SMSC SCH5636 Super I/O chips include an embedded microcontroller for
@@ -1150,6 +1158,7 @@ config SENSORS_VIA686A
 
 
 config SENSORS_VT1211
 config SENSORS_VT1211
 	tristate "VIA VT1211"
 	tristate "VIA VT1211"
+	depends on !PPC
 	select HWMON_VID
 	select HWMON_VID
 	help
 	help
 	  If you say yes here then you get support for hardware monitoring
 	  If you say yes here then you get support for hardware monitoring
@@ -1262,6 +1271,7 @@ config SENSORS_W83L786NG
 
 
 config SENSORS_W83627HF
 config SENSORS_W83627HF
 	tristate "Winbond W83627HF, W83627THF, W83637HF, W83687THF, W83697HF"
 	tristate "Winbond W83627HF, W83627THF, W83637HF, W83687THF, W83697HF"
+	depends on !PPC
 	select HWMON_VID
 	select HWMON_VID
 	help
 	help
 	  If you say yes here you get support for the Winbond W836X7 series
 	  If you say yes here you get support for the Winbond W836X7 series
@@ -1273,6 +1283,7 @@ config SENSORS_W83627HF
 
 
 config SENSORS_W83627EHF
 config SENSORS_W83627EHF
 	tristate "Winbond W83627EHF/EHG/DHG, W83667HG, NCT6775F, NCT6776F"
 	tristate "Winbond W83627EHF/EHG/DHG, W83667HG, NCT6775F, NCT6776F"
+	depends on !PPC
 	select HWMON_VID
 	select HWMON_VID
 	help
 	help
 	  If you say yes here you get support for the hardware
 	  If you say yes here you get support for the hardware