Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321556
b: refs/heads/master
c: 7e6086d
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo authored and Linus Walleij committed Aug 7, 2012
1 parent eb807b1 commit 6a63af1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: f6b0ca25ee402f714487b31c35f8e11f2bf4310b
refs/heads/master: 7e6086d9e54a159a6257c02bb7fc5805c614aad2
3 changes: 2 additions & 1 deletion trunk/drivers/gpio/gpio-mxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ static int __devinit mxc_gpio_probe(struct platform_device *pdev)
goto out_iounmap;

port->bgc.gc.to_irq = mxc_gpio_to_irq;
port->bgc.gc.base = pdev->id * 32;
port->bgc.gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 :
pdev->id * 32;

err = gpiochip_add(&port->bgc.gc);
if (err)
Expand Down

0 comments on commit 6a63af1

Please sign in to comment.