Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277071
b: refs/heads/master
c: 0b35a45
h: refs/heads/master
i:
  277069: 1a57d60
  277067: deb3d30
  277063: ec34f03
  277055: d07ee53
v: v3
  • Loading branch information
Holger Brunck authored and Olof Johansson committed Dec 20, 2011
1 parent 62d643a commit 236d24a
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 334fef05fd8f9be55f9982f788f2e85925bb2684
refs/heads/master: 0b35a45bde561d67ffd83b352764b48f936f46bb
6 changes: 5 additions & 1 deletion trunk/arch/arm/plat-orion/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,16 @@ void __init orion_gpio_init(int gpio_base, int ngpio,
struct orion_gpio_chip *ochip;
struct irq_chip_generic *gc;
struct irq_chip_type *ct;
char gc_label[16];

if (orion_gpio_chip_count == ARRAY_SIZE(orion_gpio_chips))
return;

snprintf(gc_label, sizeof(gc_label), "orion_gpio%d",
orion_gpio_chip_count);

ochip = orion_gpio_chips + orion_gpio_chip_count;
ochip->chip.label = "orion_gpio";
ochip->chip.label = kstrdup(gc_label, GFP_KERNEL);
ochip->chip.request = orion_gpio_request;
ochip->chip.direction_input = orion_gpio_direction_input;
ochip->chip.get = orion_gpio_get;
Expand Down

0 comments on commit 236d24a

Please sign in to comment.