aboutsummaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-12-07 13:32:51 +0100
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2018-12-08 18:59:35 +0100
commite5a0436dd08a18834c134ffd08295e36c6f85219 (patch)
treed64cb663792ad71cbb4f43747f093b325b63e833 /kernel/sysctl_binary.c
parentb086592e5dcd9cee360f44be801fbcadb24d5c46 (diff)
leds: pwm: Simplify with resource-managed devm_led_classdev_register()
Simplify the exit path with resource-managed version of registering LED class device. The code should be functionally the same, except that on device removal the led_pwm_priv->num_leds is not decremented to zero (which should not have any effect as device is going away). Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions