]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorbus: get rid of create_bus_type.
authorDavid Kershner <david.kershner@unisys.com>
Tue, 28 Mar 2017 13:34:46 +0000 (09:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:17:03 +0000 (09:17 +0200)
commitb4db703a8abfdc28af9fc0c3c25b24a02fe61736
treeef0548bfcfd4bc9b87f96a23c5e3ed1556798852
parent449b002258a216543d30f6cca7cd26879a3a5f5b
staging: unisys: visorbus: get rid of create_bus_type.

Create bus_type was just calling register_bustype. Since we control how
many times we call create_bus_type it was extraneous keeping a counter if
the bus was already registered, so the functions were no longer needed.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c