]> git.baikalelectronics.ru Git - kernel.git/commit
leds-as3645a: Drop fwnode reference on ignored node
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 4 Dec 2019 07:56:42 +0000 (09:56 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 22 Jan 2020 20:07:10 +0000 (21:07 +0100)
commitf71e972e08c1e2d98ad51d8f47c4637831dc9bef
tree6a2b3855b663763c7fc5ffdaa389276b213fbeaa
parent4c1b8bb67233995042cc9e40e0f6288334544321
leds-as3645a: Drop fwnode reference on ignored node

If a node is ignored, do not get a reference to it. Fix the bug by moving
fwnode_handle_get() where a reference to an fwnode is saved for clarity.

Reported-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-as3645a.c