Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280958
b: refs/heads/master
c: 30a0dee
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Jan 4, 2012
1 parent 2968277 commit 6d01278
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 3c8c9316710b83e906e425024153bf0929887b59
refs/heads/master: 30a0dee7806d099c709603e65aa08be0363ea49d
13 changes: 9 additions & 4 deletions trunk/drivers/usb/host/isp1760-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@ static int of_isp1760_probe(struct platform_device *dev)
return -ENOMEM;

ret = of_address_to_resource(dp, 0, &memory);
if (ret)
return -ENXIO;
if (ret) {
ret = -ENXIO;
goto free_data;
}

res_len = resource_size(&memory);

res = request_mem_region(memory.start, res_len, dev_name(&dev->dev));
if (!res)
return -EBUSY;
if (!res) {
ret = -EBUSY;
goto free_data;
}

if (of_irq_map_one(dp, 0, &oirq)) {
ret = -ENODEV;
Expand Down Expand Up @@ -125,6 +129,7 @@ static int of_isp1760_probe(struct platform_device *dev)
gpio_free(drvdata->rst_gpio);
release_reg:
release_mem_region(memory.start, res_len);
free_data:
kfree(drvdata);
return ret;
}
Expand Down

0 comments on commit 6d01278

Please sign in to comment.