]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
leds: class: The -ENOTSUPP should never be seen by user space
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 10 May 2021 09:50:18 +0000 (12:50 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:31:18 +0000 (09:31 +0200)
commitbad07c5ce8026ad6c8234009469617468c2cd6ab
treee895ac76b65f230b3b1bffbf828a7364f6d1380b
parent86f69f607cb92a053797fe340a255a14a9a4051d
leds: class: The -ENOTSUPP should never be seen by user space

BugLink: https://bugs.launchpad.net/bugs/1938340
[ Upstream commit 0ac40af86077982a5346dbc9655172d2775d6b08 ]

Drop the bogus error code and let of_led_get() to take care about absent
of_node.

Fixes: e389240ad992 ("leds: Add managed API to get a LED from a device driver")
Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/leds/led-class.c