aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpio.c
diff options
context:
space:
mode:
authorTarun Kanti DebBarma <tarun.kanti@ti.com>2011-08-30 05:54:27 -0400
committerTarun Kanti DebBarma <tarun.kanti@ti.com>2012-02-06 03:43:42 -0500
commitae10f2336b9c0c8da73da2878eba684ab876eb8f (patch)
tree442d2f48b9544153a63b7690a8eef27939f04419 /arch/arm/mach-omap2/gpio.c
parent9ea14d8cbbf1c8fc941e8e8a12aa0a3edc5c336e (diff)
gpio/omap: remove hardcoded offsets in context save/restore
It is not required to use hard-coded offsets any more in context save and restore functions and instead use the generic offsets which have been correctly initialized during device registration. Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com> 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpio.c b/arch/arm/mach-omap2/gpio.c
index ae5043eaba82..f4c45ca2cc59 100644
--- a/arch/arm/mach-omap2/gpio.c
+++ b/arch/arm/mach-omap2/gpio.c
@@ -84,6 +84,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
84 pdata->regs->irqstatus = OMAP24XX_GPIO_IRQSTATUS1; 84 pdata->regs->irqstatus = OMAP24XX_GPIO_IRQSTATUS1;
85 pdata->regs->irqstatus2 = OMAP24XX_GPIO_IRQSTATUS2; 85 pdata->regs->irqstatus2 = OMAP24XX_GPIO_IRQSTATUS2;
86 pdata->regs->irqenable = OMAP24XX_GPIO_IRQENABLE1; 86 pdata->regs->irqenable = OMAP24XX_GPIO_IRQENABLE1;
87 pdata->regs->irqenable2 = OMAP24XX_GPIO_IRQENABLE2;
87 pdata->regs->set_irqenable = OMAP24XX_GPIO_SETIRQENABLE1; 88 pdata->regs->set_irqenable = OMAP24XX_GPIO_SETIRQENABLE1;
88 pdata->regs->clr_irqenable = OMAP24XX_GPIO_CLEARIRQENABLE1; 89 pdata->regs->clr_irqenable = OMAP24XX_GPIO_CLEARIRQENABLE1;
89 pdata->regs->debounce = OMAP24XX_GPIO_DEBOUNCE_VAL; 90 pdata->regs->debounce = OMAP24XX_GPIO_DEBOUNCE_VAL;
@@ -106,6 +107,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
106 pdata->regs->irqstatus = OMAP4_GPIO_IRQSTATUS0; 107 pdata->regs->irqstatus = OMAP4_GPIO_IRQSTATUS0;
107 pdata->regs->irqstatus2 = OMAP4_GPIO_IRQSTATUS1; 108 pdata->regs->irqstatus2 = OMAP4_GPIO_IRQSTATUS1;
108 pdata->regs->irqenable = OMAP4_GPIO_IRQSTATUSSET0; 109 pdata->regs->irqenable = OMAP4_GPIO_IRQSTATUSSET0;
110 pdata->regs->irqenable2 = OMAP4_GPIO_IRQSTATUSSET1;
109 pdata->regs->set_irqenable = OMAP4_GPIO_IRQSTATUSSET0; 111 pdata->regs->set_irqenable = OMAP4_GPIO_IRQSTATUSSET0;
110 pdata->regs->clr_irqenable = OMAP4_GPIO_IRQSTATUSCLR0; 112 pdata->regs->clr_irqenable = OMAP4_GPIO_IRQSTATUSCLR0;
111 pdata->regs->debounce = OMAP4_GPIO_DEBOUNCINGTIME; 113 pdata->regs->debounce = OMAP4_GPIO_DEBOUNCINGTIME;