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:
Xinhuang Li 2017-11-30 10:19:21 +08:00 committed by Tao Huang
parent b240a5aae0
commit cbc0075a13

View File

@ -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)) {