aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/gpio.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2010-12-22 14:32:24 -0500
committerTony Lindgren <tony@atomide.com>2010-12-22 14:32:24 -0500
commit808601b75804475c9022f6375e76b7c62c99a10a (patch)
tree355a3100269e88460e36f251ef0ce2f1ed88d52e /arch/arm/plat-omap/gpio.c
parentc10abbb26513f4ccff89c4d80912cb4d36fcd3e8 (diff)
parentf17f9726c27c3921e00a5750e85070e6dd7e1ff7 (diff)
Merge branch 'integration-2.6.38-for-tony' of git://git.pwsan.com/linux-2.6 into omap-for-linus
Diffstat (limited to 'arch/arm/plat-omap/gpio.c')
-rw-r--r--arch/arm/plat-omap/gpio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index 8d493b992e70..1f98e0b94847 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -29,7 +29,6 @@
29#include <mach/irqs.h> 29#include <mach/irqs.h>
30#include <mach/gpio.h> 30#include <mach/gpio.h>
31#include <asm/mach/irq.h> 31#include <asm/mach/irq.h>
32#include <plat/powerdomain.h>
33 32
34/* 33/*
35 * OMAP1510 GPIO registers 34 * OMAP1510 GPIO registers
@@ -1864,7 +1863,7 @@ static struct sys_device omap_gpio_device = {
1864 1863
1865static int workaround_enabled; 1864static int workaround_enabled;
1866 1865
1867void omap2_gpio_prepare_for_idle(int power_state) 1866void omap2_gpio_prepare_for_idle(int off_mode)
1868{ 1867{
1869 int i, c = 0; 1868 int i, c = 0;
1870 int min = 0; 1869 int min = 0;
@@ -1880,7 +1879,7 @@ void omap2_gpio_prepare_for_idle(int power_state)
1880 for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++) 1879 for (j = 0; j < hweight_long(bank->dbck_enable_mask); j++)
1881 clk_disable(bank->dbck); 1880 clk_disable(bank->dbck);
1882 1881
1883 if (power_state > PWRDM_POWER_OFF) 1882 if (!off_mode)
1884 continue; 1883 continue;
1885 1884
1886 /* If going to OFF, remove triggering for all 1885 /* If going to OFF, remove triggering for all