Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio/ixp4xx: Register the base PA instead of its VA in fwnode

Do not expose the base VA (it appears in debugfs). Instead,
record the PA, which at least can be used to precisely identify
the associated irqchip and domain.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Marc Zyngier and committed by
Linus Walleij
ac1213b7 a7e42142

+1 -1
+1 -1
drivers/gpio/gpio-ixp4xx.c
··· 231 231 g->fwnode = of_node_to_fwnode(np); 232 232 } else { 233 233 parent = ixp4xx_get_irq_domain(); 234 - g->fwnode = irq_domain_alloc_fwnode(g->base); 234 + g->fwnode = irq_domain_alloc_fwnode(&res->start); 235 235 if (!g->fwnode) { 236 236 dev_err(dev, "no domain base\n"); 237 237 return -ENODEV;