gpio/ixp4xx: Register the base PA instead of its VA in fwnode
authorMarc Zyngier <maz@kernel.org>
Wed, 31 Jul 2019 15:13:42 +0000 (16:13 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 7 Aug 2019 13:24:45 +0000 (14:24 +0100)
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>
drivers/gpio/gpio-ixp4xx.c

index 670c2a85a35bffc1e01d944220058e79882b64dc..cc72c9aca5a1893ce8de52c288423da760287ec5 100644 (file)
@@ -400,7 +400,7 @@ static int ixp4xx_gpio_probe(struct platform_device *pdev)
                g->fwnode = of_node_to_fwnode(np);
        } else {
                parent = ixp4xx_get_irq_domain();
-               g->fwnode = irq_domain_alloc_fwnode(g->base);
+               g->fwnode = irq_domain_alloc_fwnode(&res->start);
                if (!g->fwnode) {
                        dev_err(dev, "no domain base\n");
                        return -ENODEV;