Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332853
b: refs/heads/master
c: da764f9
h: refs/heads/master
i:
  332851: 5eb96be
v: v3
  • Loading branch information
Viresh Kumar authored and Chris Ball committed Oct 7, 2012
1 parent 4b06666 commit 9fa6633
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 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: 067bf748bde70154a1fe1734b01f82b827c65b23
refs/heads/master: da764f97df0e5e05e5453279f934531c0cf52e11
5 changes: 1 addition & 4 deletions trunk/Documentation/devicetree/bindings/mmc/sdhci-spear.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ Required properties:
Optional properties:
- cd-gpios: card detect gpio, with zero flags.

If your board don't support these gpios then don't pass the entry.

Example:

sdhci@fc000000 {
compatible = "st,spear300-sdhci";
reg = <0xfc000000 0x1000>;

cd-gpios = <&gpio0 6 0>
cd-gpios = <&gpio0 6 0>;
};
10 changes: 5 additions & 5 deletions trunk/drivers/mmc/host/sdhci-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static int __devinit sdhci_probe(struct platform_device *pdev)
goto err;
}

ret = clk_enable(sdhci->clk);
ret = clk_prepare_enable(sdhci->clk);
if (ret) {
dev_dbg(&pdev->dev, "Error enabling clock\n");
goto put_clk;
Expand Down Expand Up @@ -260,7 +260,7 @@ static int __devinit sdhci_probe(struct platform_device *pdev)
free_host:
sdhci_free_host(host);
disable_clk:
clk_disable(sdhci->clk);
clk_disable_unprepare(sdhci->clk);
put_clk:
clk_put(sdhci->clk);
err:
Expand All @@ -282,7 +282,7 @@ static int __devexit sdhci_remove(struct platform_device *pdev)

sdhci_remove_host(host, dead);
sdhci_free_host(host);
clk_disable(sdhci->clk);
clk_disable_unprepare(sdhci->clk);
clk_put(sdhci->clk);

return 0;
Expand All @@ -297,7 +297,7 @@ static int sdhci_suspend(struct device *dev)

ret = sdhci_suspend_host(host);
if (!ret)
clk_disable(sdhci->clk);
clk_disable_unprepare(sdhci->clk);

return ret;
}
Expand All @@ -308,7 +308,7 @@ static int sdhci_resume(struct device *dev)
struct spear_sdhci *sdhci = dev_get_platdata(dev);
int ret;

ret = clk_enable(sdhci->clk);
ret = clk_prepare_enable(sdhci->clk);
if (ret) {
dev_dbg(dev, "Resume: Error enabling clock\n");
return ret;
Expand Down

0 comments on commit 9fa6633

Please sign in to comment.