Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176388
b: refs/heads/master
c: c0521ba
h: refs/heads/master
v: v3
  • Loading branch information
Uwe Kleine-König authored and Linus Torvalds committed Dec 15, 2009
1 parent de6a053 commit 57c8e17
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: 9b6e3e42a48ea535c0ed79df32d1353d5e547bed
refs/heads/master: c0521baf0d369074daf3623b5a112a0212012846
10 changes: 5 additions & 5 deletions trunk/drivers/mmc/host/mxcmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,17 +679,17 @@ static int mxcmci_probe(struct platform_device *pdev)
{
struct mmc_host *mmc;
struct mxcmci_host *host = NULL;
struct resource *r;
struct resource *iores, *r;
int ret = 0, irq;

printk(KERN_INFO "i.MX SDHC driver\n");

r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
irq = platform_get_irq(pdev, 0);
if (!r || irq < 0)
if (!iores || irq < 0)
return -EINVAL;

r = request_mem_region(r->start, resource_size(r), pdev->name);
r = request_mem_region(iores->start, resource_size(iores), pdev->name);
if (!r)
return -EBUSY;

Expand Down Expand Up @@ -809,7 +809,7 @@ static int mxcmci_probe(struct platform_device *pdev)
out_free:
mmc_free_host(mmc);
out_release_mem:
release_mem_region(host->res->start, resource_size(host->res));
release_mem_region(iores->start, resource_size(iores));
return ret;
}

Expand Down

0 comments on commit 57c8e17

Please sign in to comment.