From 7c8db8e5ff2a220cfe56efffb0f36cedf1e64f0c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 24 Apr 2004 21:29:01 +0000 Subject: [PATCH] Fix driver not being called by i2c-proc. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2473 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/pc87360.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/chips/pc87360.c b/kernel/chips/pc87360.c index f0b00458..91d3c598 100644 --- a/kernel/chips/pc87360.c +++ b/kernel/chips/pc87360.c @@ -441,7 +441,7 @@ static int pc87360_find(u8 *devid, int *address) return 0; } -/* We should not trust the address, it is unset. +/* We don't really care about the address. Read from extra_isa instead. */ int pc87360_detect(struct i2c_adapter *adapter, int address, unsigned short flags, int kind) @@ -852,6 +852,9 @@ static int __init pc87360_init(void) return -ENODEV; } + /* i2c-proc wants a checkable region */ + normal_isa[0] = extra_isa[0]; + return i2c_add_driver(&pc87360_driver); }