OSDN Git Service

leds: lm3692x: Put fwnode in any case during ->probe()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 10 May 2021 09:50:35 +0000 (12:50 +0300)
committerPavel Machek <pavel@ucw.cz>
Fri, 28 May 2021 10:00:14 +0000 (12:00 +0200)
commitf55db1c7fadc2a29c9fa4ff3aec98dbb111f2206
tree5feb1bbf72b6fe216b9f5e62a35ef6a70d80212e
parente2e8e4e8187509a77cb6328d876d9c09c07c2e82
leds: lm3692x: Put fwnode in any case during ->probe()

device_get_next_child_node() bumps a reference counting of a returned variable.
We have to balance it whenever we return to the caller.

Fixes: 9a5c1c64ac0a ("leds: lm3692x: Change DT calls to fwnode calls")
Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3692x.c