Commit 0d872ed9 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

pinctrl: starfive: Move PM device over to irq domain



Move the reference to the device over to the irq domain.

Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Reviewed-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Acked-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
Link: https://lore.kernel.org/r/20220201120310.878267-12-maz@kernel.org
parent f7e53e22
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}