Skip to contentSkip to conversation

max6875: should depend on I2C

PATCH In review Alexander Beregalov 3 participants 4 messages May 4, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 max6875: should depend on I2C

Fix this build error:
drivers/built-in.o: In function `max6875_remove':
max6875.c:(.text+0x6bdda): undefined reference to `i2c_unregister_device'

---
 drivers/misc/eeprom/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/eeprom/Kconfig +1 -1
index e23f0ec..9118613 100644
@@ -50,7 +50,7 @@ config EEPROM_LEGACY
 
 config EEPROM_MAX6875
 	tristate "Maxim MAX6874/5 power supply supervisor"
-	depends on EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get read-only support for the user EEPROM of
 	  the Maxim MAX6874/5 EEPROM-programmable, quad power-supply
Signature · 1 line
1.6.2.3
#1 lore raw

Hi Alexander,

Quoted 14 lines · Alexander Beregalov

Fix this build error:
drivers/built-in.o: In function `max6875_remove':
max6875.c:(.text+0x6bdda): undefined reference to `i2c_unregister_device'

---
 drivers/misc/eeprom/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/eeprom/Kconfig +0 -0
index e23f0ec..9118613 100644

drivers/misc/eeprom/Kconfig config EEPROM_LEGACY · line 56

Quoted 8 lines
drivers/misc/eeprom/Kconfig +1 -1
@@ -50,7 +50,7 @@ config EEPROM_LEGACY
 
 config EEPROM_MAX6875
 	tristate "Maxim MAX6874/5 power supply supervisor"
-	depends on EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get read-only support for the user EEPROM of
 	  the Maxim MAX6874/5 EEPROM-programmable, quad power-supply

Good catch! I've folded this fix into i2c/i2c-chips-move-max6875-to-drivers-misc-eeprom.patch, thanks for reporting.

Signature · 1 line
Jean Delvare
#2 lore raw
Quoted 3 lines

Good catch! I've folded this fix into i2c/i2c-chips-move-max6875-to-drivers-misc-eeprom.patch, thanks for reporting.

ACK for the patch.

Haven't noticed that Jean put it into his quilt-stack already. Jean, could you also add the ACK from Ben Gardner or shall I resend it (with the minor nit removed?)

Signature · 2 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#3 lore raw

Hi Wolfram,

Quoted 9 lines · Wolfram Sang
Quoted 3 lines

Good catch! I've folded this fix into i2c/i2c-chips-move-max6875-to-drivers-misc-eeprom.patch, thanks for reporting.

ACK for the patch.

Haven't noticed that Jean put it into his quilt-stack already. Jean, could you also add the ACK from Ben Gardner or shall I resend it (with the minor nit removed?)

I fixed it all myself, it should be OK now.

Signature · 1 line
Jean Delvare