From e9f19389388b45b4739b30b8a9ed86bfb40e8655 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Mon, 23 Jun 2003 00:56:25 +0000 Subject: [PATCH] restore functionality call that shouldn't have been removed in cleanup. Dummy adapters must return 0, otherwise they will get assigned every functionality! git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1812 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/busses/i2c-isa.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/busses/i2c-isa.c b/kernel/busses/i2c-isa.c index 7c0e38d4..53cb7a44 100644 --- a/kernel/busses/i2c-isa.c +++ b/kernel/busses/i2c-isa.c @@ -31,10 +31,13 @@ #include #include "version.h" +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... */ @@ -45,6 +48,12 @@ static struct i2c_adapter isa_adapter = { .algo = &isa_algorithm, }; +/* We can't do a thing... */ +static u32 isa_func(struct i2c_adapter *adapter) +{ + return 0; +} + static int __init i2c_isa_init(void) { printk("i2c-isa.o version %s (%s)\n", LM_VERSION, LM_DATE);