Skip to contentSkip to conversation

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

PATCH Jim Nelson 1 participant 1 message Oct 18, 2004

lore
Share & tools
lore

Jim Nelson

author
#0 lore raw

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

video/Kconfig renamed from video/Kconfig.orig +4 -3
@@ -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.