diff options
author | Charulatha V <charu@ti.com> | 2011-05-02 05:51:42 -0400 |
---|---|---|
committer | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2012-02-06 03:43:41 -0500 |
commit | c8eef65a2fc311f8edca47f2e4ac2cccb70eb192 (patch) | |
tree | d3be0559d9f02b16131dc9b46958e994fd3704f1 /arch/arm/mach-omap2/gpio.c | |
parent | 803a24343f94c3eaeed35e69efa12a576258ca70 (diff) |
gpio/omap: avoid cpu checks during module ena/disable
Remove cpu-is checks while enabling/disabling OMAP GPIO module during a gpio
request/free.
Signed-off-by: Charulatha V <charu@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpio.c')
-rw-r--r-- | arch/arm/mach-omap2/gpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpio.c b/arch/arm/mach-omap2/gpio.c index 1d60fffccb32..bc9271a970a5 100644 --- a/arch/arm/mach-omap2/gpio.c +++ b/arch/arm/mach-omap2/gpio.c | |||
@@ -88,6 +88,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused) | |||
88 | pdata->regs->clr_irqenable = OMAP24XX_GPIO_CLEARIRQENABLE1; | 88 | pdata->regs->clr_irqenable = OMAP24XX_GPIO_CLEARIRQENABLE1; |
89 | pdata->regs->debounce = OMAP24XX_GPIO_DEBOUNCE_VAL; | 89 | pdata->regs->debounce = OMAP24XX_GPIO_DEBOUNCE_VAL; |
90 | pdata->regs->debounce_en = OMAP24XX_GPIO_DEBOUNCE_EN; | 90 | pdata->regs->debounce_en = OMAP24XX_GPIO_DEBOUNCE_EN; |
91 | pdata->regs->ctrl = OMAP24XX_GPIO_CTRL; | ||
91 | break; | 92 | break; |
92 | case 2: | 93 | case 2: |
93 | pdata->bank_type = METHOD_GPIO_44XX; | 94 | pdata->bank_type = METHOD_GPIO_44XX; |
@@ -104,6 +105,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused) | |||
104 | pdata->regs->clr_irqenable = OMAP4_GPIO_IRQSTATUSCLR0; | 105 | pdata->regs->clr_irqenable = OMAP4_GPIO_IRQSTATUSCLR0; |
105 | pdata->regs->debounce = OMAP4_GPIO_DEBOUNCINGTIME; | 106 | pdata->regs->debounce = OMAP4_GPIO_DEBOUNCINGTIME; |
106 | pdata->regs->debounce_en = OMAP4_GPIO_DEBOUNCENABLE; | 107 | pdata->regs->debounce_en = OMAP4_GPIO_DEBOUNCENABLE; |
108 | pdata->regs->ctrl = OMAP4_GPIO_CTRL; | ||
107 | break; | 109 | break; |
108 | default: | 110 | default: |
109 | WARN(1, "Invalid gpio bank_type\n"); | 111 | WARN(1, "Invalid gpio bank_type\n"); |