ipmi:ipmi_ipmb: Unregister the SMI on remove
authorCorey Minyard <minyard@acm.org>
Wed, 23 Feb 2022 13:38:12 +0000 (07:38 -0600)
committerCorey 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

index ba0c2d2c6bbe0b750f0babbb0773d918ea7d4221..88d7316b3babc875a7b3b53b1038cd638559ba7c 100644 (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;
 }