提交 078c6ac1 编写于 作者: L Lars-Peter Clausen 提交者: Thierry Reding

pwm: jz4740: Pass device to clk_get()

In preparation to switching the jz4740 clk driver to the common clk framework
make sure to pass the device to clk_get().
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 6ca142ad
......@@ -171,7 +171,7 @@ static int jz4740_pwm_probe(struct platform_device *pdev)
if (!jz4740)
return -ENOMEM;
jz4740->clk = clk_get(NULL, "ext");
jz4740->clk = clk_get(&pdev->dev, "ext");
if (IS_ERR(jz4740->clk))
return PTR_ERR(jz4740->clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册