Subject: i2c: Move i2c-isa-only exported symbol declarations Move the declaration of i2c-isa-only exported symbols to i2c-isa itself, that's the best way to ensure nobody will attempt to use them. Hopefully we'll get rid of the exports themselves soon anyway. Signed-off-by: Jean Delvare --- drivers/i2c/busses/i2c-isa.c | 4 ++++ include/linux/i2c.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) --- linux-2.6.21-rc3.orig/drivers/i2c/busses/i2c-isa.c 2007-03-16 06:55:44.000000000 +0100 +++ linux-2.6.21-rc3/drivers/i2c/busses/i2c-isa.c 2007-03-16 08:19:05.000000000 +0100 @@ -41,6 +41,10 @@ #include #include +/* Exported by i2c-core for i2c-isa only */ +extern void i2c_adapter_dev_release(struct device *dev); +extern struct class i2c_adapter_class; + static u32 isa_func(struct i2c_adapter *adapter); /* This is the actual algorithm we define */ --- linux-2.6.21-rc3.orig/include/linux/i2c.h 2007-03-16 08:18:56.000000000 +0100 +++ linux-2.6.21-rc3/include/linux/i2c.h 2007-03-16 08:19:05.000000000 +0100 @@ -35,10 +35,6 @@ #include /* for completion */ #include -/* --- For i2c-isa ---------------------------------------------------- */ - -extern void i2c_adapter_dev_release(struct device *dev); -extern struct class i2c_adapter_class; extern struct bus_type i2c_bus_type; /* --- General options ------------------------------------------------ */