ipmi:ssif: Only unregister the platform driver if it was registered
authorCorey Minyard <cminyard@mvista.com>
Wed, 24 Apr 2019 15:11:16 +0000 (10:11 -0500)
committerCorey Minyard <cminyard@mvista.com>
Wed, 24 Apr 2019 17:29:24 +0000 (12:29 -0500)
commit44f56a39addecd6e93b8aa6fa51a6255259edbbb
treebabae5922bd6c63c781149cee8041d585a0e5e1f
parent55be8658c7e2feb11a5b5b33ee031791dbd23a69
ipmi:ssif: Only unregister the platform driver if it was registered

Otherwise you will get an error when the driver is removed if you
set trydmi=0.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_ssif.c