Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86023
b: refs/heads/master
c: f1cb0ea
h: refs/heads/master
i:
  86021: e8474bf
  86019: 34f6e16
  86015: ba75859
v: v3
  • Loading branch information
Saeed Bishara authored and Jeff Garzik committed Feb 20, 2008
1 parent 2174799 commit ec6b01e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 5d44b414daa8c1d8551aed6130d86d54175db43f
refs/heads/master: f1cb0ea12fee23018ad1865bf789cbd463f13747
6 changes: 2 additions & 4 deletions trunk/drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2947,7 +2947,8 @@ static int mv_platform_probe(struct platform_device *pdev)
hpriv->n_ports = n_ports;

host->iomap = NULL;
hpriv->base = ioremap(res->start, res->end - res->start + 1);
hpriv->base = devm_ioremap(&pdev->dev, res->start,
res->end - res->start + 1);
hpriv->base -= MV_SATAHC0_REG_BASE;

rc = mv_create_dma_pools(hpriv, &pdev->dev);
Expand Down Expand Up @@ -2979,11 +2980,8 @@ static int __devexit mv_platform_remove(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct ata_host *host = dev_get_drvdata(dev);
struct mv_host_priv *hpriv = host->private_data;
void __iomem *base = hpriv->base;

ata_host_detach(host);
iounmap(base);
return 0;
}

Expand Down

0 comments on commit ec6b01e

Please sign in to comment.