diff mbox series

gpio: Fix undefined lock_dep_class

Message ID 20171108204236.4493-1-linus.walleij@linaro.org
State Accepted
Commit ec47873e1f29223d949aab69f7820c09f1b65f9d
Headers show
Series gpio: Fix undefined lock_dep_class | expand

Commit Message

Linus Walleij Nov. 8, 2017, 8:42 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Thierry Reding Nov. 9, 2017, 10:06 a.m. UTC | #1
On Wed, Nov 08, 2017 at 09:42:36PM +0100, Linus Walleij wrote:
> 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 | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c

> index 961b5da38bb9..86dcd02cf602 100644

> --- a/drivers/gpio/gpiolib.c

> +++ b/drivers/gpio/gpiolib.c

> @@ -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;

>  }


Reviewed-by: Thierry Reding <treding@nvidia.com>
diff mbox series

Patch

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 961b5da38bb9..86dcd02cf602 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -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;
 }