Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321559
b: refs/heads/master
c: d6a2b7b
h: refs/heads/master
i:
  321557: a5668d8
  321555: eb807b1
  321551: 19cd5aa
v: v3
  • Loading branch information
Julia Lawall authored and Linus Walleij committed Aug 7, 2012
1 parent 7aa278e commit c546215
Show file tree
Hide file tree
Showing 2 changed files with 6 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: f7093f3e7a50bfeeceb8950f9130cbf8af74bf92
refs/heads/master: d6a2b7ba67334a7e72cd153c142c449831557cb9
7 changes: 5 additions & 2 deletions trunk/drivers/gpio/gpio-langwell.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static int __devinit lnw_gpio_probe(struct pci_dev *pdev,
resource_size_t start, len;
struct lnw_gpio *lnw;
u32 gpio_base;
int retval = 0;
int retval;
int ngpio = id->driver_data;

retval = pci_enable_device(pdev);
Expand All @@ -357,6 +357,7 @@ static int __devinit lnw_gpio_probe(struct pci_dev *pdev,
base = ioremap_nocache(start, len);
if (!base) {
dev_err(&pdev->dev, "error mapping bar1\n");
retval = -EFAULT;
goto err3;
}
gpio_base = *((u32 *)base + 1);
Expand All @@ -381,8 +382,10 @@ static int __devinit lnw_gpio_probe(struct pci_dev *pdev,

lnw->domain = irq_domain_add_linear(pdev->dev.of_node, ngpio,
&lnw_gpio_irq_ops, lnw);
if (!lnw->domain)
if (!lnw->domain) {
retval = -ENOMEM;
goto err3;
}

lnw->reg_base = base;
lnw->chip.label = dev_name(&pdev->dev);
Expand Down

0 comments on commit c546215

Please sign in to comment.