Commit 011b2039dfd46fa030138b2e2ed3c55c8341151d

Authored by Stephen Boyd
Committed by Linus Walleij
1 parent 253403b035

gpio_msm: Fix build error due to missing err.h

drivers/gpio/gpio-msm-v1.c: In function 'gpio_msm_v1_probe':
drivers/gpio/gpio-msm-v1.c:656:2:
error: implicit declaration of function 'IS_ERR'
[-Werror=implicit-function-declaration]
drivers/gpio/gpio-msm-v1.c:657:3:
error: implicit declaration of function 'PTR_ERR'
[-Werror=implicit-function-declaration]

This driver failed to compile after commit 68515bb
(gpio_msm: Convert to use devm_ioremap_resource,
2013-06-10).

Acked-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/gpio/gpio-msm-v1.c
... ... @@ -21,6 +21,7 @@
21 21 #include <linux/module.h>
22 22 #include <linux/device.h>
23 23 #include <linux/platform_device.h>
  24 +#include <linux/err.h>
24 25  
25 26 #include <mach/msm_gpiomux.h>
26 27