Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323293
b: refs/heads/master
c: 7ac140e
h: refs/heads/master
i:
  323291: 288de69
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Aug 4, 2012
1 parent b91898f commit 8921937
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: 0eb46ad0c8d60943c1f46cef795fc537fbffd177
refs/heads/master: 7ac140ec426ed304237205be77f99eedfc1186b5
6 changes: 4 additions & 2 deletions trunk/drivers/base/regmap/regmap-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

struct regmap_irq_chip_data {
struct mutex lock;
struct irq_chip irq_chip;

struct regmap *map;
const struct regmap_irq_chip *chip;
Expand Down Expand Up @@ -129,7 +130,7 @@ static int regmap_irq_set_wake(struct irq_data *data, unsigned int on)
return 0;
}

static struct irq_chip regmap_irq_chip = {
static const struct irq_chip regmap_irq_chip = {
.name = "regmap",
.irq_bus_lock = regmap_irq_lock,
.irq_bus_sync_unlock = regmap_irq_sync_unlock,
Expand Down Expand Up @@ -197,7 +198,7 @@ static int regmap_irq_map(struct irq_domain *h, unsigned int virq,
struct regmap_irq_chip_data *data = h->host_data;

irq_set_chip_data(virq, data);
irq_set_chip_and_handler(virq, &regmap_irq_chip, handle_edge_irq);
irq_set_chip_and_handler(virq, &data->irq_chip, handle_edge_irq);
irq_set_nested_thread(virq, 1);

/* ARM needs us to explicitly flag the IRQ as valid
Expand Down Expand Up @@ -285,6 +286,7 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
goto err_alloc;
}

d->irq_chip = regmap_irq_chip;
d->irq = irq;
d->map = map;
d->chip = chip;
Expand Down

0 comments on commit 8921937

Please sign in to comment.