mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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>
This commit is contained in:
parent
8614419451
commit
2431d0a1d6
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue