Skip to content

Commit

Permalink
[PATCH] it87: Fix oops on removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Feb 14, 2006
1 parent a40f0b0 commit be79c38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hwmon/it87.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit be79c38

Please sign in to comment.