diff options
author | Marc Zyngier <maz@kernel.org> | 2022-02-01 15:03:09 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-02-10 14:07:04 +0300 |
commit | 0d872ed9e2148a8ba29de5a71c352fa54abf8e5e (patch) | |
tree | 2ed8580bafe2ae858daff0d2ca6359ba99c8401c /drivers/pinctrl/pinctrl-starfive.c | |
parent | f7e53e2255808ca3abcc8f38d18ad0823425e771 (diff) | |
download | linux-0d872ed9e2148a8ba29de5a71c352fa54abf8e5e.tar.xz |
pinctrl: starfive: Move PM device over to irq domain
Move the reference to the device over to the irq domain.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Emil Renner Berthing <kernel@esmil.dk>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
Link: https://lore.kernel.org/r/20220201120310.878267-12-maz@kernel.org
Diffstat (limited to 'drivers/pinctrl/pinctrl-starfive.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-starfive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-starfive.c b/drivers/pinctrl/pinctrl-starfive.c index 0b912152a405..5be9866c2b3c 100644 --- a/drivers/pinctrl/pinctrl-starfive.c +++ b/drivers/pinctrl/pinctrl-starfive.c @@ -1307,7 +1307,6 @@ static int starfive_probe(struct platform_device *pdev) sfp->gc.base = -1; sfp->gc.ngpio = NR_GPIOS; - starfive_irq_chip.parent_device = dev; starfive_irq_chip.name = sfp->gc.label; sfp->gc.irq.chip = &starfive_irq_chip; @@ -1330,6 +1329,8 @@ static int starfive_probe(struct platform_device *pdev) if (ret) return dev_err_probe(dev, ret, "could not register gpiochip\n"); + irq_domain_set_pm_device(sfp->gc.irq.domain, dev); + out_pinctrl_enable: return pinctrl_enable(sfp->pctl); } |