Skip to content

Commit 9246106

Browse files
author
Marc Zyngier
committed
gpio: tpmx86: 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> Acked-by: Bartosz Golaszewski <brgl@bgdev.pl> Link: https://lore.kernel.org/r/20220201120310.878267-10-maz@kernel.org
1 parent 373d664 commit 9246106

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpio/gpio-tqmx86.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ static int tqmx86_gpio_probe(struct platform_device *pdev)
281281
u8 irq_status;
282282

283283
irq_chip->name = chip->label;
284-
irq_chip->parent_device = &pdev->dev;
285284
irq_chip->irq_mask = tqmx86_gpio_irq_mask;
286285
irq_chip->irq_unmask = tqmx86_gpio_irq_unmask;
287286
irq_chip->irq_set_type = tqmx86_gpio_irq_set_type;
@@ -316,6 +315,8 @@ static int tqmx86_gpio_probe(struct platform_device *pdev)
316315
goto out_pm_dis;
317316
}
318317

318+
irq_domain_set_pm_device(girq->domain, dev);
319+
319320
dev_info(dev, "GPIO functionality initialized with %d pins\n",
320321
chip->ngpio);
321322

0 commit comments

Comments
 (0)