pinctrl: npcm: Fix broken references to chip->parent_device
authorMarc Zyngier <maz@kernel.org>
Tue, 1 Feb 2022 12:03:08 +0000 (12:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:54 +0000 (14:23 +0200)
commit99780fcb5494a7e9498b7cf5fdacff7741724dec
tree2958f357bbfbcc6230fd91ac01dc2cdb9ff114fd
parent999ee266531bb38497a1ddef03f482961f3ae0e4
pinctrl: npcm: Fix broken references to chip->parent_device

[ Upstream commit f7e53e2255808ca3abcc8f38d18ad0823425e771 ]

The npcm driver has a bunch of references to the irq_chip parent_device
field, but never sets it.

Fix it by fishing that reference from somewhere else, but it is
obvious that these debug statements were never used. Also remove
an unused field in a local data structure.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Bartosz Golaszewski <brgl@bgdev.pl>
Link: https://lore.kernel.org/r/20220201120310.878267-11-maz@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c