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

From: Jim Nelson
Date: Mon Oct 18 2004 - 04:47:29 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 13:07:09.222883919 -0400
@@ -667,8 +667,6 @@
config FB_RADEON
tristate "ATI Radeon display support"
depends on FB && PCI
- select I2C_ALGOBIT if FB_RADEON_I2C
- select I2C if FB_RADEON_I2C
select FB_MODE_HELPERS
help
Choose this option if you want to use an ATI Radeon graphics card as
@@ -685,9 +683,12 @@
There is a product page at
<http://www.ati.com/na/pages/products/pc/radeon32/index.html>.

+comment "Enable I2C and I2C_ALGOBIT to enable ATI Radeon DDC/I2C support."
+ depends on FB_RADEON && !(I2C && I2C_ALGOBIT)
+
config FB_RADEON_I2C
bool "DDC/I2C for ATI Radeon support"
- depends on FB_RADEON
+ depends on FB_RADEON && I2C && I2C_ALGOBIT
default y
help
Say Y here if you want DDC/I2C support for your Radeon board.