Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95288e28 authored by Zhen Lei's avatar Zhen Lei Committed by Greg Kroah-Hartman
Browse files

leds: as3645a: Fix error return code in as3645a_parse_node()



[ Upstream commit 96a30960a2c5246c8ffebe8a3c9031f9df094d97 ]

Return error code -ENODEV rather than '0' when the indicator node can not
be found.

Fixes: a56ba8fb ("media: leds: as3645a: Add LED flash class driver")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f0acb12b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment