summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 51a8d4103be5..908b750f4901 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -8,6 +8,7 @@
#include <linux/seq_file.h>
#include <linux/gpio.h>
+#include <asm/mach-types.h>
/* Optional implementation infrastructure for GPIO interfaces.
*
@@ -474,6 +475,11 @@ int gpio_export(unsigned gpio, bool direction_may_change)
dev = device_create(&gpio_class, desc->chip->dev, MKDEV(0, 0),
desc, ioname ? ioname : "gpio%d", gpio);
+
+ if ( machine_is_ccwmx51js() || machine_is_ccmx51js() )
+ // Allow this device to be used as wake up source
+ device_set_wakeup_capable(dev,1);
+
if (dev) {
if (direction_may_change)
status = sysfs_create_group(&dev->kobj,