diff options
Diffstat (limited to 'drivers/hwmon/it87.c')
-rw-r--r-- | drivers/hwmon/it87.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index e87d52c59940..d7a9401600bb 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -1186,7 +1186,8 @@ static int __init sm_it87_init(void) | |||
1186 | 1186 | ||
1187 | static void __exit sm_it87_exit(void) | 1187 | static void __exit sm_it87_exit(void) |
1188 | { | 1188 | { |
1189 | i2c_isa_del_driver(&it87_isa_driver); | 1189 | if (isa_address) |
1190 | i2c_isa_del_driver(&it87_isa_driver); | ||
1190 | i2c_del_driver(&it87_driver); | 1191 | i2c_del_driver(&it87_driver); |
1191 | } | 1192 | } |
1192 | 1193 | ||