Skip to contentSkip to conversation

regmap: Pass back the allocated regmap IRQ controller data

PATCH New Mark Brown 1 participant 1 message May 13, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regmap: Pass back the allocated regmap IRQ controller data

It's needed for freeing and for obtaining the IRQ base later on.

---
 drivers/base/regmap/regmap-irq.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/base/regmap/regmap-irq.c +2 -0
index 1befaa7..f4e6dcf 100644
@@ -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)
Signature · 1 line
1.7.10