Commit de7d1793 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-gpio: set irq chip name only once

There is only one irq chip so set its name only once
in driver probe function.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d7fa8fa
...@@ -257,7 +257,6 @@ mediatek_gpio_bank_probe(struct platform_device *pdev, ...@@ -257,7 +257,6 @@ mediatek_gpio_bank_probe(struct platform_device *pdev,
return ret; return ret;
} }
mediatek_gpio_irq_chip.name = rg->chip.label;
ret = gpiochip_irqchip_add(&rg->chip, &mediatek_gpio_irq_chip, ret = gpiochip_irqchip_add(&rg->chip, &mediatek_gpio_irq_chip,
0, handle_simple_irq, IRQ_TYPE_NONE); 0, handle_simple_irq, IRQ_TYPE_NONE);
if (ret) { if (ret) {
...@@ -296,6 +295,7 @@ mediatek_gpio_probe(struct platform_device *pdev) ...@@ -296,6 +295,7 @@ mediatek_gpio_probe(struct platform_device *pdev)
gpio_data->gpio_irq = irq_of_parse_and_map(np, 0); gpio_data->gpio_irq = irq_of_parse_and_map(np, 0);
gpio_data->dev = &pdev->dev; gpio_data->dev = &pdev->dev;
platform_set_drvdata(pdev, gpio_data); platform_set_drvdata(pdev, gpio_data);
mediatek_gpio_irq_chip.name = dev_name(&pdev->dev);
for (i = 0; i < MTK_BANK_CNT; i++) for (i = 0; i < MTK_BANK_CNT; i++)
mediatek_gpio_bank_probe(pdev, np, i); mediatek_gpio_bank_probe(pdev, np, i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment