From khali@linux-fr.org Tue Feb 7 08:52:59 2006 Date: Tue, 7 Feb 2006 17:53:32 +0100 From: Jean Delvare To: Greg KH Subject: [PATCH] it87: Fix oops on removal Message-Id: <20060207175332.3c1be7ba.khali@linux-fr.org> Fix an oops on it87 module removal when no supported hardware was found. Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/it87.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/hwmon/it87.c +++ gregkh-2.6/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); }