projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
373d664
)
gpio: tpmx86: Move PM device over to irq domain
author
Marc Zyngier
<maz@kernel.org>
Tue, 1 Feb 2022 12:03:07 +0000
(12:03 +0000)
committer
Marc Zyngier
<maz@kernel.org>
Wed, 9 Feb 2022 13:36:54 +0000
(13:36 +0000)
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
drivers/gpio/gpio-tqmx86.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-tqmx86.c
b/drivers/gpio/gpio-tqmx86.c
index 5b103221b58dd2a3ac7bb97e1b33f1b9a6ecea98..fa4bc7481f9a600b57d8ab6851ac9052c19cb49f 100644
(file)
--- a/
drivers/gpio/gpio-tqmx86.c
+++ b/
drivers/gpio/gpio-tqmx86.c
@@
-281,7
+281,6
@@
static int tqmx86_gpio_probe(struct platform_device *pdev)
u8 irq_status;
irq_chip->name = chip->label;
- irq_chip->parent_device = &pdev->dev;
irq_chip->irq_mask = tqmx86_gpio_irq_mask;
irq_chip->irq_unmask = tqmx86_gpio_irq_unmask;
irq_chip->irq_set_type = tqmx86_gpio_irq_set_type;
@@
-316,6
+315,8
@@
static int tqmx86_gpio_probe(struct platform_device *pdev)
goto out_pm_dis;
}
+ irq_domain_set_pm_device(girq->domain, dev);
+
dev_info(dev, "GPIO functionality initialized with %d pins\n",
chip->ngpio);