Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299458
b: refs/heads/master
c: 02269ab
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Artamonow authored and Samuel Ortiz committed Apr 16, 2012
1 parent 6daf7a5 commit 7da04be
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 1fcb57d0f6e1150003d222051aaaf4bc4a9ccc94
refs/heads/master: 02269ab10f1130d35dc35db72ab026d16ba31abf
4 changes: 3 additions & 1 deletion trunk/drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,9 @@ static void asic3_gpio_set(struct gpio_chip *chip,

static int asic3_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
{
return (offset < ASIC3_NUM_GPIOS) ? IRQ_BOARD_START + offset : -ENXIO;
struct asic3 *asic = container_of(chip, struct asic3, gpio);

return (offset < ASIC3_NUM_GPIOS) ? asic->irq_base + offset : -ENXIO;
}

static __init int asic3_gpio_probe(struct platform_device *pdev,
Expand Down

0 comments on commit 7da04be

Please sign in to comment.