diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2019-10-03 13:03:10 +1300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-10-05 18:36:30 +0200 |
commit | 74033d99b6d7b9df27d169144958603504e6e6fc (patch) | |
tree | 204aae86677462c777895b3dd186ad5b0a2a2dd2 /drivers/pinctrl/bcm | |
parent | 037699139ecb223c2eb7206f21cfb06f2812fd8c (diff) | |
download | blackbird-op-linux-74033d99b6d7b9df27d169144958603504e6e6fc.tar.gz blackbird-op-linux-74033d99b6d7b9df27d169144958603504e6e6fc.zip |
pinctrl: iproc: use unique name for irq chip
Use the dev_name(dev) for the irqc->name so that we get unique names
when we have multiple instances of this driver.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20191003000310.17099-3-chris.packham@alliedtelesis.co.nz
Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/bcm')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c index 6f7d3a2f2e97..f50833e6650a 100644 --- a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c +++ b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c @@ -858,7 +858,7 @@ static int iproc_gpio_probe(struct platform_device *pdev) struct gpio_irq_chip *girq; irqc = &chip->irqchip; - irqc->name = "bcm-iproc-gpio"; + irqc->name = dev_name(dev); irqc->irq_ack = iproc_gpio_irq_ack; irqc->irq_mask = iproc_gpio_irq_mask; irqc->irq_unmask = iproc_gpio_irq_unmask; |