Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149470
b: refs/heads/master
c: d6c9b5e
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Zabel authored and Pierre Ossman committed Jun 13, 2009
1 parent 5122b2c commit a0284cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 6c413cc76b893310b3b258b7de47fb74dcc50203
refs/heads/master: d6c9b5ed37c26503795d241474a17db1d306e7ea
12 changes: 5 additions & 7 deletions trunk/drivers/mmc/host/tmio_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,23 +522,21 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev)
struct resource *res_ctl, *res_cnf;
struct tmio_mmc_host *host;
struct mmc_host *mmc;
int ret = -ENOMEM;
int ret = -EINVAL;

if (dev->num_resources != 3)
goto out;

res_ctl = platform_get_resource(dev, IORESOURCE_MEM, 0);
res_cnf = platform_get_resource(dev, IORESOURCE_MEM, 1);
if (!res_ctl || !res_cnf) {
ret = -EINVAL;
if (!res_ctl || !res_cnf)
goto out;
}

pdata = cell->driver_data;
if (!pdata || !pdata->hclk) {
ret = -EINVAL;
if (!pdata || !pdata->hclk)
goto out;
}

ret = -ENOMEM;

mmc = mmc_alloc_host(sizeof(struct tmio_mmc_host), &dev->dev);
if (!mmc)
Expand Down

0 comments on commit a0284cb

Please sign in to comment.