summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-07-19 17:24:33 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-22 11:59:23 +0200
commit57b8ff070f9897b22e4f80fda775a489fc797008 (patch)
tree94f60efe6120ca7cb9214d5ed98a5e7ecb95f812 /tools
parente323b2dddc1ce7ea7f032c986c012a04d5977dc8 (diff)
downloadop-kernel-dev-57b8ff070f9897b22e4f80fda775a489fc797008.zip
op-kernel-dev-57b8ff070f9897b22e4f80fda775a489fc797008.tar.gz
driver core: add devm_device_add_group() and friends
Many drivers create additional driver-specific device attributes when binding to the device, and providing managed version of device_create_group() will simplify unbinding and error handling in probe path for such drivers. Without managed version driver writers either have to mix manual and managed resources, which is prone to errors, or open-code this function by providing a wrapper to device_add_group() and use it with devm_add_action() or devm_add_action_or_reset(). Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud