Skip to content

Commit cbc0075

Browse files
buluessrkhuangtao
authored andcommitted
input: rc: Fix clk get error
when the work clock is the same as the bus clock.drop the "clock-names" property as the PWM uses only one clock (the driver now needs to call devm_clk_get with NULL). Change-Id: I7fcdd9635f81778a3dc522d99d0fc081408d6fea Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
1 parent b240a5a commit cbc0075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/remotectl/rockchip_pwm_remotectl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static int rk_pwm_probe(struct platform_device *pdev)
425425
clk = devm_clk_get(&pdev->dev, "pwm");
426426
p_clk = devm_clk_get(&pdev->dev, "pclk");
427427
} else {
428-
clk = devm_clk_get(&pdev->dev, "pclk_pwm");
428+
clk = devm_clk_get(&pdev->dev, NULL);
429429
p_clk = clk;
430430
}
431431
if (IS_ERR(clk)) {

0 commit comments

Comments
 (0)