staging: gasket: remove driver registration on class creation failure
authorTodd Poynor <toddpoynor@google.com>
Tue, 17 Jul 2018 20:56:45 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2018 09:39:47 +0000 (11:39 +0200)
commitba6585847ebc432e0c808c2bd194e620017b5901
treed22f9c5d4d87153b701ac7f5ea0a6f105ad2d4ee
parentb17cef4d08ac9866f8996015d3bf396f51488a25
staging: gasket: remove driver registration on class creation failure

If class_create() fails, remove the gasket driver from the global
registration table.

Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_core.c