mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
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>
This commit is contained in:
parent
b240a5aae0
commit
cbc0075a13
|
|
@ -425,7 +425,7 @@ static int rk_pwm_probe(struct platform_device *pdev)
|
|||
clk = devm_clk_get(&pdev->dev, "pwm");
|
||||
p_clk = devm_clk_get(&pdev->dev, "pclk");
|
||||
} else {
|
||||
clk = devm_clk_get(&pdev->dev, "pclk_pwm");
|
||||
clk = devm_clk_get(&pdev->dev, NULL);
|
||||
p_clk = clk;
|
||||
}
|
||||
if (IS_ERR(clk)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user