Skip to content

Commit 9eb0587

Browse files
wigyoriUwe Kleine-König
authored andcommitted
pwm: img: fix pwm clock lookup
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: 22e8e19 ("pwm: img: Rename variable pointing to driver private data") Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 4cece76 commit 9eb0587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pwm/pwm-img.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ static int img_pwm_probe(struct platform_device *pdev)
284284
return PTR_ERR(imgchip->sys_clk);
285285
}
286286

287-
imgchip->pwm_clk = devm_clk_get(&pdev->dev, "imgchip");
287+
imgchip->pwm_clk = devm_clk_get(&pdev->dev, "pwm");
288288
if (IS_ERR(imgchip->pwm_clk)) {
289-
dev_err(&pdev->dev, "failed to get imgchip clock\n");
289+
dev_err(&pdev->dev, "failed to get pwm clock\n");
290290
return PTR_ERR(imgchip->pwm_clk);
291291
}
292292

0 commit comments

Comments
 (0)