]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] it87: Fix oops on removal
authorJean Delvare <khali@linux-fr.org>
Sun, 19 Feb 2006 14:18:04 +0000 (15:18 +0100)
committerChris Wright <chrisw@sous-sol.org>
Wed, 1 Mar 2006 22:36:35 +0000 (14:36 -0800)
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>
drivers/hwmon/it87.c

index a61f5d00f10a2abf1cf0211c9f7d1355db0cf28e..4702c874c407794e437ce9384aa8f4035fc6c883 100644 (file)
@@ -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);
 }