From: Jean Delvare Date: Tue, 7 Feb 2006 16:53:32 +0000 (+0100) Subject: [PATCH] it87: Fix oops on removal X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=be79c383254cd3eb50953d8c0a7cacdbf6db31c0;p=openwrt%2Fstaging%2Fblogic.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 --- 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) 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); }