leds: netxbig: add missing put_device() call in netxbig_leds_get_of_pdata()
authorYu Kuai <yukuai3@huawei.com>
Thu, 29 Oct 2020 09:23:05 +0000 (17:23 +0800)
committerPavel Machek <pavel@ucw.cz>
Wed, 25 Nov 2020 12:18:08 +0000 (13:18 +0100)
commit311066aa9ebcd6f1789c829da5039ca02f2dfe46
tree98c5f558decfb80c39738d19f35644576008e27b
parent12ec7e56ce95d7b6fd4cd74e634c1181e2b424e1
leds: netxbig: add missing put_device() call in netxbig_leds_get_of_pdata()

if of_find_device_by_node() succeed, netxbig_leds_get_of_pdata() doesn't
have a corresponding put_device(). Thus add jump target to fix the
exception handling for this function implementation.

Fixes: 2976b1798909 ("leds: netxbig: add device tree binding")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-netxbig.c