driver-core: platform: Provide helpers for multi-driver modules
authorThierry Reding <treding@nvidia.com>
Fri, 25 Sep 2015 15:29:04 +0000 (17:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2015 04:02:40 +0000 (05:02 +0100)
commitdbe2256ddd8e8420c254c79f4045c41cb5f4bd6b
treee90776bacb2349a6828b4e079aa131ff5293a61d
parent7568fb63f57ac8672f8bf2018171255441238882
driver-core: platform: Provide helpers for multi-driver modules

Some modules register several sub-drivers. Provide a helper that makes
it easy to register and unregister a list of sub-drivers, as well as
unwind properly on error.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-model/platform.txt
drivers/base/platform.c
include/linux/platform_device.h