diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-06-10 17:40:55 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-10 17:41:06 -0400 |
commit | 547c32aeb5a24178ef20488ae0508efcc32ae8e4 (patch) | |
tree | fdc33154820cfddc845cef2f67380dace655b28f /arch/arm/plat-s3c/gpio.c | |
parent | b0efb42478c81ed0ed9aa0dc444db200c32624f0 (diff) | |
parent | 99ae99533a059750c4b0f76295625b8ac5ea751a (diff) |
Merge branch for-rmk-devel of git://aeryn.fluff.org.uk/bjdooks/linux into devel
Diffstat (limited to 'arch/arm/plat-s3c/gpio.c')
-rw-r--r-- | arch/arm/plat-s3c/gpio.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c/gpio.c b/arch/arm/plat-s3c/gpio.c index d71dd6d9ce5c..260fdc6ad685 100644 --- a/arch/arm/plat-s3c/gpio.c +++ b/arch/arm/plat-s3c/gpio.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
18 | 18 | ||
19 | #include <plat/gpio-core.h> | 19 | #include <mach/gpio-core.h> |
20 | 20 | ||
21 | #ifdef CONFIG_S3C_GPIO_TRACK | 21 | #ifdef CONFIG_S3C_GPIO_TRACK |
22 | struct s3c_gpio_chip *s3c_gpios[S3C_GPIO_END]; | 22 | struct s3c_gpio_chip *s3c_gpios[S3C_GPIO_END]; |
@@ -140,6 +140,15 @@ __init void s3c_gpiolib_add(struct s3c_gpio_chip *chip) | |||
140 | if (!gc->get) | 140 | if (!gc->get) |
141 | gc->get = s3c_gpiolib_get; | 141 | gc->get = s3c_gpiolib_get; |
142 | 142 | ||
143 | #ifdef CONFIG_PM | ||
144 | if (chip->pm != NULL) { | ||
145 | if (!chip->pm->save || !chip->pm->resume) | ||
146 | printk(KERN_ERR "gpio: %s has missing PM functions\n", | ||
147 | gc->label); | ||
148 | } else | ||
149 | printk(KERN_ERR "gpio: %s has no PM function\n", gc->label); | ||
150 | #endif | ||
151 | |||
143 | /* gpiochip_add() prints own failure message on error. */ | 152 | /* gpiochip_add() prints own failure message on error. */ |
144 | ret = gpiochip_add(gc); | 153 | ret = gpiochip_add(gc); |
145 | if (ret >= 0) | 154 | if (ret >= 0) |