diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-02-23 16:11:41 -0800 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2015-03-09 13:43:41 -0700 |
commit | ca1bb4ee4c3a017bb66840d11d5efdf4e8f3f66d (patch) | |
tree | eb9a3f0c441f5b1559b24eaf3ac9a296b03e7184 /include/linux | |
parent | eb2294c3432fb6366ec12b56a3b2a12cf4242b69 (diff) | |
download | linux-stable-ca1bb4ee4c3a017bb66840d11d5efdf4e8f3f66d.tar.gz linux-stable-ca1bb4ee4c3a017bb66840d11d5efdf4e8f3f66d.tar.bz2 linux-stable-ca1bb4ee4c3a017bb66840d11d5efdf4e8f3f66d.zip |
leds: Introduce devres helper for led_classdev_register
(cooloney@gmail.com: add _unregister function into the document)
Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/leds.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index f70f84f35674..ed634279062e 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -105,7 +105,11 @@ struct led_classdev { extern int led_classdev_register(struct device *parent, struct led_classdev *led_cdev); +extern int devm_led_classdev_register(struct device *parent, + struct led_classdev *led_cdev); extern void led_classdev_unregister(struct led_classdev *led_cdev); +extern void devm_led_classdev_unregister(struct device *parent, + struct led_classdev *led_cdev); extern void led_classdev_suspend(struct led_classdev *led_cdev); extern void led_classdev_resume(struct led_classdev *led_cdev); |