Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373641
b: refs/heads/master
c: 879fe32
h: refs/heads/master
i:
  373639: 8c4c94b
v: v3
  • Loading branch information
Jon Hunter authored and Linus Walleij committed Apr 10, 2013
1 parent 45d55c1 commit c50fc3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 2b78f1e1389aef263071b9edf41c0980b092e601
refs/heads/master: 879fe32438be9ff1ea2cf44e39e11b58206a76b2
6 changes: 4 additions & 2 deletions trunk/drivers/gpio/gpio-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,6 @@ static int omap_gpio_probe(struct platform_device *pdev)
const struct omap_gpio_platform_data *pdata;
struct resource *res;
struct gpio_bank *bank;
int ret = 0;

match = of_match_device(of_match_ptr(omap_gpio_match), dev);

Expand Down Expand Up @@ -1143,18 +1142,21 @@ static int omap_gpio_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (unlikely(!res)) {
dev_err(dev, "Invalid mem resource\n");
irq_domain_remove(bank->domain);
return -ENODEV;
}

if (!devm_request_mem_region(dev, res->start, resource_size(res),
pdev->name)) {
dev_err(dev, "Region already claimed\n");
irq_domain_remove(bank->domain);
return -EBUSY;
}

bank->base = devm_ioremap(dev, res->start, resource_size(res));
if (!bank->base) {
dev_err(dev, "Could not ioremap\n");
irq_domain_remove(bank->domain);
return -ENOMEM;
}

Expand All @@ -1178,7 +1180,7 @@ static int omap_gpio_probe(struct platform_device *pdev)

list_add_tail(&bank->node, &omap_gpio_list);

return ret;
return 0;
}

#ifdef CONFIG_ARCH_OMAP2PLUS
Expand Down

0 comments on commit c50fc3d

Please sign in to comment.