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 <pavel@ucw.cz>
Sat, 21 Dec 2019 19:09:47 +0000 (20:09 +0100)
commit9f4b952d0bfb7efffb7e85797efa5322e7e69dc5
tree6a2b3855b663763c7fc5ffdaa389276b213fbeaa
parent8e8d699b051f9ef86e31fb24569ccf3d869b54c4
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