diff mbox

ARM: S3C64XX: Fix build break in PM debug

Message ID 1313144754-30485-1-git-send-email-a.kesavan@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Abhilash Kesavan Aug. 12, 2011, 10:25 a.m. UTC
When S3C_PM_DEBUG_LED_SMDK is enabled for suspend/resume debugging, the following
compilation error occurs:

arch/arm/mach-s3c64xx/pm.c: In function 's3c_pm_debug_smdkled':
arch/arm/mach-s3c64xx/pm.c:41: error: implicit declaration of function 'gpio_set_value'
arch/arm/mach-s3c64xx/pm.c:41: error: implicit declaration of function 'S3C64XX_GPN'
arch/arm/mach-s3c64xx/pm.c: In function 's3c64xx_pm_init':
arch/arm/mach-s3c64xx/pm.c:184: error: implicit declaration of function 'gpio_request'
arch/arm/mach-s3c64xx/pm.c:188: error: implicit declaration of function 'gpio_direction_output'

Fix the error by including linux/gpio.h

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
---
 arch/arm/mach-s3c64xx/pm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Kim Kukjin Aug. 13, 2011, 1:50 a.m. UTC | #1
Abhilash Kesavan wrote:
> 
> When S3C_PM_DEBUG_LED_SMDK is enabled for suspend/resume debugging,
> the following
> compilation error occurs:
> 
> arch/arm/mach-s3c64xx/pm.c: In function 's3c_pm_debug_smdkled':
> arch/arm/mach-s3c64xx/pm.c:41: error: implicit declaration of function
> 'gpio_set_value'
> arch/arm/mach-s3c64xx/pm.c:41: error: implicit declaration of function
> 'S3C64XX_GPN'
> arch/arm/mach-s3c64xx/pm.c: In function 's3c64xx_pm_init':
> arch/arm/mach-s3c64xx/pm.c:184: error: implicit declaration of function
> 'gpio_request'
> arch/arm/mach-s3c64xx/pm.c:188: error: implicit declaration of function
> 'gpio_direction_output'
> 
> Fix the error by including linux/gpio.h
> 
> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
> ---
>  arch/arm/mach-s3c64xx/pm.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c
> index 8bad643..055e285 100644
> --- a/arch/arm/mach-s3c64xx/pm.c
> +++ b/arch/arm/mach-s3c64xx/pm.c
> @@ -16,6 +16,7 @@
>  #include <linux/suspend.h>
>  #include <linux/serial_core.h>
>  #include <linux/io.h>
> +#include <linux/gpio.h>
> 
>  #include <mach/map.h>
>  #include <mach/irqs.h>
> --
> 1.6.6.1

OK, applied.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
diff mbox

Patch

diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c
index 8bad643..055e285 100644
--- a/arch/arm/mach-s3c64xx/pm.c
+++ b/arch/arm/mach-s3c64xx/pm.c
@@ -16,6 +16,7 @@ 
 #include <linux/suspend.h>
 #include <linux/serial_core.h>
 #include <linux/io.h>
+#include <linux/gpio.h>
 
 #include <mach/map.h>
 #include <mach/irqs.h>