Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336324
b: refs/heads/master
c: 7430e77
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Chris Ball committed Dec 6, 2012
1 parent 77d5b2e commit 75992f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4071fbbb9edbc5a24985b2f64ed45f35b90dbeb
refs/heads/master: 7430e77e64000133c50cbd287d44733b4f487dc5
11 changes: 4 additions & 7 deletions trunk/drivers/mmc/host/sdhci-dove.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int __devinit sdhci_dove_probe(struct platform_device *pdev)
return -ENOMEM;
}

priv->clk = clk_get(&pdev->dev, NULL);
priv->clk = devm_clk_get(&pdev->dev, NULL);
if (!IS_ERR(priv->clk))
clk_prepare_enable(priv->clk);

Expand All @@ -107,10 +107,8 @@ static int __devinit sdhci_dove_probe(struct platform_device *pdev)
return 0;

sdhci_dove_register_fail:
if (!IS_ERR(priv->clk)) {
if (!IS_ERR(priv->clk))
clk_disable_unprepare(priv->clk);
clk_put(priv->clk);
}
return ret;
}

Expand All @@ -122,10 +120,9 @@ static int __devexit sdhci_dove_remove(struct platform_device *pdev)

sdhci_pltfm_unregister(pdev);

if (!IS_ERR(priv->clk)) {
if (!IS_ERR(priv->clk))
clk_disable_unprepare(priv->clk);
clk_put(priv->clk);
}

return 0;
}

Expand Down

0 comments on commit 75992f8

Please sign in to comment.