gpio: Fix undefined lock_dep_class
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Nov 2017 20:40:41 +0000 (21:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Nov 2017 20:40:41 +0000 (21:40 +0100)
The struct is wrong, this is named lock_class_key.

Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 961b5da38bb92dd3ed0e83cd17d521b9a847c9cc..86dcd02cf602f91d85eb8af0342d07902c46878f 100644 (file)
@@ -1940,7 +1940,7 @@ EXPORT_SYMBOL_GPL(gpiochip_irqchip_add_key);
 #else /* CONFIG_GPIOLIB_IRQCHIP */
 
 static inline int gpiochip_add_irqchip(struct gpio_chip *gpiochip,
-                                      struct lock_dep_class *lock_key)
+                                      struct lock_class_key *key)
 {
        return 0;
 }