diff options
author | Marc Zyngier <maz@kernel.org> | 2019-07-31 16:13:42 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-08-21 13:33:48 +0200 |
commit | ac1213b7d79580ca52d7517e61e1ec4120134f0c (patch) | |
tree | b8e483c81621506650d3a63a7170fc083a18ffdf /drivers/gpio/gpio-ixp4xx.c | |
parent | a7e42142926f815c776f745d027f69a53415d99c (diff) | |
download | linux-next-ac1213b7d79580ca52d7517e61e1ec4120134f0c.tar.gz |
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>
Diffstat (limited to 'drivers/gpio/gpio-ixp4xx.c')
-rw-r--r-- | drivers/gpio/gpio-ixp4xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ixp4xx.c b/drivers/gpio/gpio-ixp4xx.c index 8bd23e80c61f..1a57e74fdb91 100644 --- a/drivers/gpio/gpio-ixp4xx.c +++ b/drivers/gpio/gpio-ixp4xx.c @@ -231,7 +231,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; |