aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/smsc47b397.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-07-19 17:51:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 12:14:09 -0400
commitfde0950903ce8cc38a91dd095280decceda2ff82 (patch)
tree5a970459793ac46ad7082f0d722616730b0589c2 /drivers/hwmon/smsc47b397.c
parent400c455eaa0d0819d18cd42a74070e0e238a73dc (diff)
[PATCH] I2C: Separate non-i2c hwmon drivers from i2c-core (3/9)
Convert the 10 ISA hardware monitoring drivers (it87, lm78, pc87360, sis5595, smsc47b397, smsc47m1, via686a, w83627hf, w83627ehf, w83781d) to explicitely register with i2c-isa. For hybrid drivers (it87, lm78, w83781d), we now have two separate instances of i2c_driver, one for the I2C interface of the chip, and one for ISA interface. In the long run, the one for ISA will be replaced with a different driver type. At this point, all drivers are working again, except for missing dependencies in Kconfig. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hwmon/smsc47b397.c')
-rw-r--r--drivers/hwmon/smsc47b397.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c
index 96b9eb40f425..0f965921b8ed 100644
--- a/drivers/hwmon/smsc47b397.c
+++ b/drivers/hwmon/smsc47b397.c
@@ -31,6 +31,7 @@
31#include <linux/ioport.h> 31#include <linux/ioport.h>
32#include <linux/jiffies.h> 32#include <linux/jiffies.h>
33#include <linux/i2c.h> 33#include <linux/i2c.h>
34#include <linux/i2c-isa.h>
34#include <linux/i2c-sensor.h> 35#include <linux/i2c-sensor.h>
35#include <linux/hwmon.h> 36#include <linux/hwmon.h>
36#include <linux/err.h> 37#include <linux/err.h>
@@ -350,12 +351,12 @@ static int __init smsc47b397_init(void)
350 if ((ret = smsc47b397_find(normal_isa))) 351 if ((ret = smsc47b397_find(normal_isa)))
351 return ret; 352 return ret;
352 353
353 return i2c_add_driver(&smsc47b397_driver); 354 return i2c_isa_add_driver(&smsc47b397_driver);
354} 355}
355 356
356static void __exit smsc47b397_exit(void) 357static void __exit smsc47b397_exit(void)
357{ 358{
358 i2c_del_driver(&smsc47b397_driver); 359 i2c_isa_del_driver(&smsc47b397_driver);
359} 360}
360 361
361MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>"); 362MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>");