]> git.hungrycats.org Git - linux/commitdiff
[PATCH] I2C: Fix SCx200 dependancies
authorJean Delvare <khali@linux-fr.org>
Tue, 30 Dec 2003 04:10:08 +0000 (20:10 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 30 Dec 2003 04:10:08 +0000 (20:10 -0800)
The following patch fixes incorrect dependencies (as far as I can see)
for the SCx200 modules. A similar patch (with even more fixes) is also
needed for Linux 2.4, and will be part of my next wave to Marcelo. Note
that I don't have the necessary hardware to actually test anything, but
a quick look at the code doesn't leave much place for doubt IMHO.

drivers/i2c/busses/Kconfig

index 5037884d2254b59d708bc4116aed418339d243db..9ffb555396a2fa30bc56cf2bf6041e87b8a965d1 100644 (file)
@@ -202,7 +202,7 @@ config I2C_SAVAGE4
 
 config SCx200_I2C
        tristate "NatSemi SCx200 I2C using GPIO pins"
-       depends on SCx200 && I2C_ALGOBIT
+       depends on SCx200_GPIO && I2C_ALGOBIT
        help
          Enable the use of two GPIO pins of a SCx200 processor as an I2C bus.
 
@@ -229,7 +229,7 @@ config SCx200_I2C_SDA
 
 config SCx200_ACB
        tristate "NatSemi SCx200 ACCESS.bus"
-       depends on I2C_ALGOBIT!=n && I2C
+       depends on I2C
        help
          Enable the use of the ACCESS.bus controllers of a SCx200 processor.