diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-02-07 17:53:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-14 07:30:10 +0100 |
commit | be79c383254cd3eb50953d8c0a7cacdbf6db31c0 (patch) | |
tree | 18c8be9725b3e315f6acbb445e94744917e23d63 /drivers | |
parent | [PATCH] w83627hf: Document the reset module parameter (diff) | |
download | linux-be79c383254cd3eb50953d8c0a7cacdbf6db31c0.tar.xz linux-be79c383254cd3eb50953d8c0a7cacdbf6db31c0.zip |
[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>
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 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); } |