提交 0d872ed9 编写于 作者: M Marc Zyngier

pinctrl: starfive: Move PM device over to irq domain

Move the reference to the device over to the irq domain.
Signed-off-by: NMarc Zyngier <maz@kernel.org>
Reviewed-by: NEmil Renner Berthing <kernel@esmil.dk>
Acked-by: NBartosz Golaszewski <brgl@bgdev.pl>
Link: https://lore.kernel.org/r/20220201120310.878267-12-maz@kernel.org
上级 f7e53e22
...@@ -1307,7 +1307,6 @@ static int starfive_probe(struct platform_device *pdev) ...@@ -1307,7 +1307,6 @@ static int starfive_probe(struct platform_device *pdev)
sfp->gc.base = -1; sfp->gc.base = -1;
sfp->gc.ngpio = NR_GPIOS; sfp->gc.ngpio = NR_GPIOS;
starfive_irq_chip.parent_device = dev;
starfive_irq_chip.name = sfp->gc.label; starfive_irq_chip.name = sfp->gc.label;
sfp->gc.irq.chip = &starfive_irq_chip; sfp->gc.irq.chip = &starfive_irq_chip;
...@@ -1330,6 +1329,8 @@ static int starfive_probe(struct platform_device *pdev) ...@@ -1330,6 +1329,8 @@ static int starfive_probe(struct platform_device *pdev)
if (ret) if (ret)
return dev_err_probe(dev, ret, "could not register gpiochip\n"); return dev_err_probe(dev, ret, "could not register gpiochip\n");
irq_domain_set_pm_device(sfp->gc.irq.domain, dev);
out_pinctrl_enable: out_pinctrl_enable:
return pinctrl_enable(sfp->pctl); return pinctrl_enable(sfp->pctl);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册