aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sis5595.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/sis5595.c')
-rw-r--r--drivers/hwmon/sis5595.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c
index ea5934f89f05..e5db835d63f0 100644
--- a/drivers/hwmon/sis5595.c
+++ b/drivers/hwmon/sis5595.c
@@ -55,6 +55,7 @@
55#include <linux/ioport.h> 55#include <linux/ioport.h>
56#include <linux/pci.h> 56#include <linux/pci.h>
57#include <linux/i2c.h> 57#include <linux/i2c.h>
58#include <linux/i2c-isa.h>
58#include <linux/i2c-sensor.h> 59#include <linux/i2c-sensor.h>
59#include <linux/hwmon.h> 60#include <linux/hwmon.h>
60#include <linux/err.h> 61#include <linux/err.h>
@@ -790,7 +791,7 @@ static int __devinit sis5595_pci_probe(struct pci_dev *dev,
790 normal_isa[0] = addr; 791 normal_isa[0] = addr;
791 792
792 s_bridge = pci_dev_get(dev); 793 s_bridge = pci_dev_get(dev);
793 if (i2c_add_driver(&sis5595_driver)) { 794 if (i2c_isa_add_driver(&sis5595_driver)) {
794 pci_dev_put(s_bridge); 795 pci_dev_put(s_bridge);
795 s_bridge = NULL; 796 s_bridge = NULL;
796 } 797 }
@@ -817,7 +818,7 @@ static void __exit sm_sis5595_exit(void)
817{ 818{
818 pci_unregister_driver(&sis5595_pci_driver); 819 pci_unregister_driver(&sis5595_pci_driver);
819 if (s_bridge != NULL) { 820 if (s_bridge != NULL) {
820 i2c_del_driver(&sis5595_driver); 821 i2c_isa_del_driver(&sis5595_driver);
821 pci_dev_put(s_bridge); 822 pci_dev_put(s_bridge);
822 s_bridge = NULL; 823 s_bridge = NULL;
823 } 824 }