Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311474
b: refs/heads/master
c: a18dada
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Jeff Garzik committed Jul 25, 2012
1 parent 6e234f9 commit aead59c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ff0173c1a3ce003e361a8045ded905c285c3f08f
refs/heads/master: a18dada08e7fe284767e67d6e4ce8f7d40b40b09
10 changes: 5 additions & 5 deletions trunk/drivers/ata/pata_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int __devinit pata_imx_probe(struct platform_device *pdev)
return PTR_ERR(priv->clk);
}

clk_enable(priv->clk);
clk_prepare_enable(priv->clk);

host = ata_host_alloc(&pdev->dev, 1);
if (!host)
Expand Down Expand Up @@ -162,7 +162,7 @@ static int __devinit pata_imx_probe(struct platform_device *pdev)
&pata_imx_sht);

free_priv:
clk_disable(priv->clk);
clk_disable_unprepare(priv->clk);
clk_put(priv->clk);
return -ENOMEM;
}
Expand All @@ -176,7 +176,7 @@ static int __devexit pata_imx_remove(struct platform_device *pdev)

__raw_writel(0, priv->host_regs + PATA_IMX_ATA_INT_EN);

clk_disable(priv->clk);
clk_disable_unprepare(priv->clk);
clk_put(priv->clk);

return 0;
Expand All @@ -194,7 +194,7 @@ static int pata_imx_suspend(struct device *dev)
__raw_writel(0, priv->host_regs + PATA_IMX_ATA_INT_EN);
priv->ata_ctl =
__raw_readl(priv->host_regs + PATA_IMX_ATA_CONTROL);
clk_disable(priv->clk);
clk_disable_unprepare(priv->clk);
}

return ret;
Expand All @@ -205,7 +205,7 @@ static int pata_imx_resume(struct device *dev)
struct ata_host *host = dev_get_drvdata(dev);
struct pata_imx_priv *priv = host->private_data;

clk_enable(priv->clk);
clk_prepare_enable(priv->clk);

__raw_writel(priv->ata_ctl, priv->host_regs + PATA_IMX_ATA_CONTROL);

Expand Down

0 comments on commit aead59c

Please sign in to comment.