From: Jean Delvare Date: Sun, 19 Feb 2006 14:18:04 +0000 (+0100) Subject: [PATCH] it87: Fix oops on removal X-Git-Tag: v2.6.15.5~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8c4e1c4d248f300c2ab6d6b5e9e1b78ebb212fd;p=thirdparty%2Fkernel%2Fstable.git [PATCH] it87: Fix oops on removal Fix an oops on it87 module removal when no supported hardware was found. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index a61f5d00f10a2..4702c874c4077 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); }