]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: img: fix pwm clock lookup
authorZoltan HERPAI <wigyori@uid0.hu>
Wed, 20 Mar 2024 08:36:02 +0000 (09:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:52 +0000 (15:28 +0200)
commit674545b4852c191a6cd73ec88ec7ad012efff040
tree3319d2226cd4b3084c7df5376374d2950bf874c4
parent9114ba9987506bcfbb454f6e68558d68cb1abbde
pwm: img: fix pwm clock lookup

[ Upstream commit 9eb05877dbee03064d3d3483cd6702f610d5a358 ]

22e8e19 has introduced a regression in the imgchip->pwm_clk lookup, whereas
the clock name has also been renamed to "imgchip". This causes the driver
failing to load:

[    0.546905] img-pwm 18101300.pwm: failed to get imgchip clock
[    0.553418] img-pwm: probe of 18101300.pwm failed with error -2

Fix this lookup by reverting the clock name back to "pwm".

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
Link: https://lore.kernel.org/r/20240320083602.81592-1-wigyori@uid0.hu
Fixes: 22e8e19a46f7 ("pwm: img: Rename variable pointing to driver private data")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-img.c