Commit 2431d0a1 authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 86144194
...@@ -192,6 +192,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, ...@@ -192,6 +192,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
if (!d) if (!d)
return -ENOMEM; return -ENOMEM;
*data = d;
d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs,
GFP_KERNEL); GFP_KERNEL);
if (!d->status_buf) if (!d->status_buf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment