ipmi:ipmi_ipmb: Unregister the SMI on remove

Otherwise it will continue to be hooked into the IPMI framework.

Signed-off-by: Corey Minyard <minyard@acm.org>
This commit is contained in:
Corey Minyard 2022-02-23 07:38:12 -06:00 committed by Corey Minyard
parent 2596f6b93a
commit 57c9e3c9a3

View File

@ -433,6 +433,8 @@ static int ipmi_ipmb_remove(struct i2c_client *client)
}
ipmi_ipmb_stop_thread(iidev);
ipmi_unregister_smi(iidev->intf);
return 0;
}