ChangeSet 1.1153.85.2, 2003/08/27 15:29:33-07:00, mds@paradyne.com [PATCH] I2C: i2c-isa functionality The "functionality" return was incorrectly removed for i2c-isa.c when porting to 2.5. A driver that does nothing must return a 0 or else i2c-core assumes 0xffffffff (all functionality). drivers/i2c/busses/i2c-isa.c | 9 +++++++++ 1 files changed, 9 insertions(+) diff -Nru a/drivers/i2c/busses/i2c-isa.c b/drivers/i2c/busses/i2c-isa.c --- a/drivers/i2c/busses/i2c-isa.c Mon Sep 22 16:17:05 2003 +++ b/drivers/i2c/busses/i2c-isa.c Mon Sep 22 16:17:05 2003 @@ -30,10 +30,13 @@ #include #include +static u32 isa_func(struct i2c_adapter *adapter); + /* This is the actual algorithm we define */ static struct i2c_algorithm isa_algorithm = { .name = "ISA bus algorithm", .id = I2C_ALGO_ISA, + .functionality = isa_func, }; /* There can only be one... */ @@ -44,6 +47,12 @@ .algo = &isa_algorithm, .name = "ISA main adapter", }; + +/* We can't do a thing... */ +static u32 isa_func(struct i2c_adapter *adapter) +{ + return 0; +} static int __init i2c_isa_init(void) {