]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit119b5b8f230453c1f4dc8ef95fb824c04aa0554b
treed22f9c5d4d87153b701ac7f5ea0a6f105ad2d4ee
parent6241b45d6b57f2db0b142c4701151a7db9df72b3
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