diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-02-19 15:18:04 +0100 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-03-01 14:36:35 -0800 |
commit | a8c4e1c4d248f300c2ab6d6b5e9e1b78ebb212fd (patch) | |
tree | a9f77e1789f11bbfb6be8f72beb499f4d63b3f78 /drivers | |
parent | 99e1baf86ff6a31330ff0c7bb77110338f03ddc5 (diff) |
[PATCH] it87: Fix oops on removal
Fix an oops on it87 module removal when no supported hardware was
found.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'drivers')
-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 a61f5d00f10..4702c874c40 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c @@ -1180,7 +1180,8 @@ static int __init sm_it87_init(void) static void __exit sm_it87_exit(void) { - i2c_isa_del_driver(&it87_isa_driver); + if (isa_address) + i2c_isa_del_driver(&it87_isa_driver); i2c_del_driver(&it87_driver); } |