diff options
| author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-01-15 04:01:29 -0500 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-15 07:48:06 -0500 |
| commit | 785acec3eecf4c21bab9e24afb5d354b57a72e03 (patch) | |
| tree | 3b883a9345ce35bc06349f39750ea89bd7e76852 /drivers/gpio | |
| parent | 3018fd81310688c3dfe8938a98680a9341982d02 (diff) | |
ARM: S5P[v210|c100|64x0]: Fix build error
gpio-samsung.h header file introduced by commit 93177be0910c
("ARM: S3C[24|64]xx: move includes back under <mach/> scope")
is required only by S3C[24|64]xx machines. Include them conditionally
to avoid the following build errors for other machine configurations.
drivers/gpio/gpio-samsung.c:35:31: fatal error: mach/gpio-samsung.h: No such file or directory
arch/arm/plat-samsung/pm-gpio.c:22:31: fatal error: mach/gpio-samsung.h: No such file or directory
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
| -rw-r--r-- | drivers/gpio/gpio-samsung.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index 9741cce11df5..a85e00bf9834 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c | |||
| @@ -32,7 +32,10 @@ | |||
| 32 | 32 | ||
| 33 | #include <mach/map.h> | 33 | #include <mach/map.h> |
| 34 | #include <mach/regs-gpio.h> | 34 | #include <mach/regs-gpio.h> |
| 35 | |||
| 36 | #if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) | ||
| 35 | #include <mach/gpio-samsung.h> | 37 | #include <mach/gpio-samsung.h> |
| 38 | #endif | ||
| 36 | 39 | ||
| 37 | #include <plat/cpu.h> | 40 | #include <plat/cpu.h> |
| 38 | #include <plat/gpio-core.h> | 41 | #include <plat/gpio-core.h> |
