Explorar o código

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>
Mark Brown %!s(int64=13) %!d(string=hai) anos
pai
achega
2431d0a1d6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/base/regmap/regmap-irq.c

+ 2 - 0
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)