make i2c-acorn tristate
authorAl Viro <viro@ftp.linux.org.uk>
Sun, 15 Jul 2007 20:37:16 +0000 (21:37 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 15 Jul 2007 23:40:52 +0000 (16:40 -0700)
It depends on tristate I2C and it's trivial to make modular.  The
current Kconfig allows I2C=m, I2C_ACORN=y, which doesn't work at
all; alternatives are dependency on I2C=y and making I2C_ACORN
itself a tristate.  The latter is the right thing to do...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-acorn.c

index fcde9bab5b96e07d510b39221874a015228be34b..1c77e14480dcc9ddee2d4f1e1f6cbcdd1add5a17 100644 (file)
@@ -560,7 +560,7 @@ config I2C_VERSATILE
          will be called i2c-versatile.
 
 config I2C_ACORN
-       bool "Acorn IOC/IOMD I2C bus support"
+       tristate "Acorn IOC/IOMD I2C bus support"
        depends on ARCH_ACORN
        default y
        select I2C_ALGOBIT
index 09bd7f40b90c182a698c07f4fd72c9609d2a90de..7c2be3558a247c227e2bb40e1e5517230b27bdd9 100644 (file)
@@ -94,4 +94,4 @@ static int __init i2c_ioc_init(void)
        return i2c_bit_add_bus(&ioc_ops);
 }
 
-__initcall(i2c_ioc_init);
+module_init(i2c_ioc_init);