From: Mark Brown Date: Sun, 13 May 2012 10:18:34 +0000 (+0100) Subject: regmap: Pass back the allocated regmap IRQ controller data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2431d0a1d68aabefeee02b93971ee73e8b215697;p=linux-beck.git 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 --- 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, if (!d) return -ENOMEM; + *data = d; + d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, GFP_KERNEL); if (!d->status_buf)