]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gpio: brcmstb: Make really use of the new lockdep class
authorThomas Gleixner <tglx@linutronix.de>
Fri, 29 Dec 2017 15:29:15 +0000 (16:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 29 Dec 2017 15:37:09 +0000 (16:37 +0100)
The recent extension of irq_set_lockdep_class() with a second argument
added the new lockdep class to the mrcmstb driver, but used the already
existing lockdep class as second argument, which leaves the new lockdep
class defined but unused.

Use the new lockdep class as that's what the change intended to do.

Fixes: 39c3fd58952d ("kernel/irq: Extend lockdep class for request mutex")
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: linus.walleij@linaro.org
drivers/gpio/gpio-brcmstb.c

index 5b24801bffefd245e87bb9d371aeaaf276d346d1..bb4f8cf18bd9f6c7e47328aaf2ec1cdd3dfc3d6b 100644 (file)
@@ -348,7 +348,7 @@ static int brcmstb_gpio_irq_map(struct irq_domain *d, unsigned int irq,
        if (ret < 0)
                return ret;
        irq_set_lockdep_class(irq, &brcmstb_gpio_irq_lock_class,
-                             &brcmstb_gpio_irq_lock_class);
+                             &brcmstb_gpio_irq_request_class);
        irq_set_chip_and_handler(irq, &priv->irq_chip, handle_level_irq);
        irq_set_noprobe(irq);
        return 0;