Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144556
b: refs/heads/master
c: c60a32c
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Pierre Ossman committed May 3, 2009
1 parent 3652635 commit 1e7ad5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 548d2de9bd978a4d4e941477500f1ab97aade137
refs/heads/master: c60a32cd129b1c41f98888b03ba2904406bac8f8
8 changes: 5 additions & 3 deletions trunk/drivers/mmc/host/sdhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(

host = sdhci_alloc_host(&pdev->dev, sizeof(struct sdhci_pci_slot));
if (IS_ERR(host)) {
ret = PTR_ERR(host);
goto unmap;
dev_err(&pdev->dev, "cannot allocate host\n");
return ERR_PTR(PTR_ERR(host));
}

slot = sdhci_priv(host);
Expand All @@ -541,7 +541,7 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
ret = pci_request_region(pdev, bar, mmc_hostname(host->mmc));
if (ret) {
dev_err(&pdev->dev, "cannot request region\n");
return ERR_PTR(ret);
goto free;
}

addr = pci_resource_start(pdev, bar);
Expand Down Expand Up @@ -572,6 +572,8 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(

release:
pci_release_region(pdev, bar);

free:
sdhci_free_host(host);

return ERR_PTR(ret);
Expand Down

0 comments on commit 1e7ad5e

Please sign in to comment.