mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] it87: Fix oops on removal
Fix an oops on it87 module removal when no supported hardware was found. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a40f0b0f24
commit
be79c38325
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue