Skip to content

Commit 0d872ed

Browse files
author
Marc Zyngier
committed
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
1 parent f7e53e2 commit 0d872ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pinctrl/pinctrl-starfive.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,6 @@ static int starfive_probe(struct platform_device *pdev)
13071307
sfp->gc.base = -1;
13081308
sfp->gc.ngpio = NR_GPIOS;
13091309

1310-
starfive_irq_chip.parent_device = dev;
13111310
starfive_irq_chip.name = sfp->gc.label;
13121311

13131312
sfp->gc.irq.chip = &starfive_irq_chip;
@@ -1330,6 +1329,8 @@ static int starfive_probe(struct platform_device *pdev)
13301329
if (ret)
13311330
return dev_err_probe(dev, ret, "could not register gpiochip\n");
13321331

1332+
irq_domain_set_pm_device(sfp->gc.irq.domain, dev);
1333+
13331334
out_pinctrl_enable:
13341335
return pinctrl_enable(sfp->pctl);
13351336
}

0 commit comments

Comments
 (0)