Skip to content

Commit 2431d0a

Browse files
committed
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 <[email protected]>
1 parent 8614419 commit 2431d0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/base/regmap/regmap-irq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
192192
if (!d)
193193
return -ENOMEM;
194194

195+
*data = d;
196+
195197
d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs,
196198
GFP_KERNEL);
197199
if (!d->status_buf)

0 commit comments

Comments
 (0)