diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-13 06:18:34 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-13 14:16:13 -0400 |
commit | 2431d0a1d68aabefeee02b93971ee73e8b215697 (patch) | |
tree | 06fc50fc05594bd2f40475fe50a100c0677b29a8 /drivers/base/regmap/regmap-irq.c | |
parent | 8614419451d88bf99fff7f5e468fe45f8450891e (diff) |
regmap: Pass back the allocated regmap IRQ controller data
It's needed for freeing and for obtaining the IRQ base later on.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/regmap-irq.c')
-rw-r--r-- | drivers/base/regmap/regmap-irq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c index 1befaa7a31cb..f4e6dcfc8504 100644 --- a/drivers/base/regmap/regmap-irq.c +++ b/drivers/base/regmap/regmap-irq.c | |||
@@ -192,6 +192,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, | |||
192 | if (!d) | 192 | if (!d) |
193 | return -ENOMEM; | 193 | return -ENOMEM; |
194 | 194 | ||
195 | *data = d; | ||
196 | |||
195 | d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, | 197 | d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, |
196 | GFP_KERNEL); | 198 | GFP_KERNEL); |
197 | if (!d->status_buf) | 199 | if (!d->status_buf) |