Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
regmap: Pass back the allocated regmap IRQ controller data
Browse files Browse the repository at this point in the history
It's needed for freeing and for obtaining the IRQ base later on.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
broonie committed May 13, 2012
1 parent 8614419 commit 2431d0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/base/regmap/regmap-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
if (!d)
return -ENOMEM;

*data = d;

d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs,
GFP_KERNEL);
if (!d->status_buf)
Expand Down

0 comments on commit 2431d0a

Please sign in to comment.