mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
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: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
6ca142ad0d
commit
078c6ac1bd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue