Skip to content

Commit 57c9e3c

Browse files
committed
ipmi:ipmi_ipmb: Unregister the SMI on remove
Otherwise it will continue to be hooked into the IPMI framework. Signed-off-by: Corey Minyard <[email protected]>
1 parent 2596f6b commit 57c9e3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/char/ipmi/ipmi_ipmb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ static int ipmi_ipmb_remove(struct i2c_client *client)
433433
}
434434
ipmi_ipmb_stop_thread(iidev);
435435

436+
ipmi_unregister_smi(iidev->intf);
437+
436438
return 0;
437439
}
438440

0 commit comments

Comments
 (0)