Patch to drivers/video/Kconfig [2 of 4]

From: Jim Nelson
Date: Mon Oct 18 2004 - 04:48:47 EST


Fix undefined symbol errors in "make config" on architectures that do
not have I2C (sparc, primarily)

Apply against 2.6.9-rc4.

diff -u drivers/video/Kconfig.orig drivers/video/Kconfig

--- drivers/video/Kconfig.orig 2004-10-16 11:58:32.738491881 -0400
+++ drivers/video/Kconfig 2004-10-16 12:55:51.225105213 -0400
@@ -586,10 +586,12 @@
depends on FB_MATROX && (FB_MATROX_G450 || FB_MATROX_G100A)
default y

+comment "Enable I2C and I2C_ALGOBIT to enable Matrox I2C support."
+ depends on FB_MATROX && !(I2C && I2C_ALGOBIT)
+
config FB_MATROX_I2C
tristate "Matrox I2C support"
- depends on FB_MATROX && I2C
- select I2C_ALGOBIT
+ depends on FB_MATROX && I2C && I2C_ALGOBIT
---help---
This drivers creates I2C buses which are needed for accessing the
DDC (I2C) bus present on all Matroxes, an I2C bus which