[lkml]   [2013]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] gpio_msm: Fix build error due to missing err.h
drivers/gpio/gpio-msm-v1.c: In function 'gpio_msm_v1_probe':
error: implicit declaration of function 'IS_ERR'
error: implicit declaration of function 'PTR_ERR'

This driver failed to compile after commit 68515bb
(gpio_msm: Convert to use devm_ioremap_resource,

Cc: Tushar Behera <>
Signed-off-by: Stephen Boyd <>
drivers/gpio/gpio-msm-v1.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c
index e3ceaac..73b7396 100644
--- a/drivers/gpio/gpio-msm-v1.c
+++ b/drivers/gpio/gpio-msm-v1.c
@@ -21,6 +21,7 @@
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
+#include <linux/err.h>

#include <mach/msm_gpiomux.h>

The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

 \ /
  Last update: 2013-07-24 22:41    [W:0.112 / U:4.516 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site