projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2596f6b
)
ipmi:ipmi_ipmb: Unregister the SMI on remove
author
Corey Minyard
<minyard@acm.org>
Wed, 23 Feb 2022 13:38:12 +0000
(07:38 -0600)
committer
Corey Minyard
<cminyard@mvista.com>
Wed, 23 Feb 2022 13:59:17 +0000
(07:59 -0600)
Otherwise it will continue to be hooked into the IPMI framework.
Signed-off-by: Corey Minyard <minyard@acm.org>
drivers/char/ipmi/ipmi_ipmb.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/ipmi_ipmb.c
b/drivers/char/ipmi/ipmi_ipmb.c
index ba0c2d2c6bbe0b750f0babbb0773d918ea7d4221..88d7316b3babc875a7b3b53b1038cd638559ba7c 100644
(file)
--- a/
drivers/char/ipmi/ipmi_ipmb.c
+++ b/
drivers/char/ipmi/ipmi_ipmb.c
@@
-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;
}