aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-07-26 11:42:52 -0400
committerLinus Walleij <linus.walleij@linaro.org>2018-07-29 17:38:42 -0400
commit0b07609ccd48a23103881a161e49eb7a282170e7 (patch)
tree45675ae8d4549a850b590f1651446beaa8042a1c
parent23211b08c367bc9b22469c1460f5dbb67142e06d (diff)
gpio: tegra: drop tegra specific GPIO lockdep classes
Since commit e45d1c80c0ee ("gpio: put GPIO IRQs into their own lock class") and commit a0a8bcf4670c ("gpiolib: irqchip: use different lockdep class for each gpio irqchip") GPIO lib takes care of lockdep classes. In fact, gpiochip_irq_map() overwrites the class anyway, so the lockdep class set by the driver is useless. Remove it. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-tegra.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 22e7c99ed69e..2d940785bad0 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -551,13 +551,6 @@ static const struct dev_pm_ops tegra_gpio_pm_ops = {
551 SET_SYSTEM_SLEEP_PM_OPS(tegra_gpio_suspend, tegra_gpio_resume) 551 SET_SYSTEM_SLEEP_PM_OPS(tegra_gpio_suspend, tegra_gpio_resume)
552}; 552};
553 553
554/*
555 * This lock class tells lockdep that GPIO irqs are in a different category
556 * than their parents, so it won't report false recursion.
557 */
558static struct lock_class_key gpio_lock_class;
559static struct lock_class_key gpio_request_class;
560
561static int tegra_gpio_probe(struct platform_device *pdev) 554static int tegra_gpio_probe(struct platform_device *pdev)
562{ 555{
563 struct tegra_gpio_info *tgi; 556 struct tegra_gpio_info *tgi;
@@ -662,8 +655,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
662 655
663 bank = &tgi->bank_info[GPIO_BANK(gpio)]; 656 bank = &tgi->bank_info[GPIO_BANK(gpio)];
664 657
665 irq_set_lockdep_class(irq, &gpio_lock_class,
666 &gpio_request_class);
667 irq_set_chip_data(irq, bank); 658 irq_set_chip_data(irq, bank);
668 irq_set_chip_and_handler(irq, &tgi->ic, handle_simple_irq); 659 irq_set_chip_and_handler(irq, &tgi->ic, handle_simple_irq);
669 } 660 }