Skip to contentSkip to conversation

make i2c-acorn tristate

PATCH New Al Viro 1 participant 1 message Jul 15, 2007 I2C subsystem host drivers

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 make i2c-acorn tristate

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...

---
 drivers/i2c/busses/Kconfig     |    2 +-
 drivers/i2c/busses/i2c-acorn.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/Kconfig +1 -1
index fcde9ba..1c77e14 100644
@@ -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
drivers/i2c/busses/i2c-acorn.c +1 -1
index 09bd7f4..7c2be35 100644
@@ -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);
Signature · 1 line
1.5.3.GIT