diff options
author | Nishanth Menon <nm@ti.com> | 2011-08-08 20:45:32 -0500 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2011-08-29 19:35:15 -0500 |
commit | 1745ac53873b9251b47475c9c3a3f787340ecbf2 (patch) | |
tree | 0b383b12da1d7c527f7e0060ff82125c9ac8fba5 /drivers/gpio | |
parent | 8f9daece4bae3efb7306babf74262e8f9ff5e5de (diff) | |
download | kernel_samsung_tuna-1745ac53873b9251b47475c9c3a3f787340ecbf2.zip kernel_samsung_tuna-1745ac53873b9251b47475c9c3a3f787340ecbf2.tar.gz kernel_samsung_tuna-1745ac53873b9251b47475c9c3a3f787340ecbf2.tar.bz2 |
GPIO: OMAP: save and restore wakeup_set register not status
Status register has no meaning for save and restore. We
need to save and restore the wakeup_set register instead.
Change-Id: I50fa813aa77391622845dcc012cf1ee74377dd67
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 3da9d53..41b9a2d 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1416,7 +1416,7 @@ void omap_gpio_save_context(struct gpio_bank *bank) bank->context.irqenable2 = __raw_readl(bank->base + bank->regs->irqenable2); bank->context.wake_en = - __raw_readl(bank->base + bank->regs->wkup_status); + __raw_readl(bank->base + bank->regs->wkup_set); bank->context.ctrl = __raw_readl(bank->base + bank->regs->ctrl); bank->context.oe = __raw_readl(bank->base + bank->regs->direction); bank->context.leveldetect0 = @@ -1446,7 +1446,7 @@ void omap_gpio_restore_context(struct gpio_bank *bank) __raw_writel(bank->context.irqenable2, bank->base + bank->regs->irqenable2); __raw_writel(bank->context.wake_en, - bank->base + bank->regs->wkup_status); + bank->base + bank->regs->wkup_set); __raw_writel(bank->context.ctrl, bank->base + bank->regs->ctrl); __raw_writel(bank->context.oe, bank->base + bank->regs->direction); __raw_writel(bank->context.leveldetect0, |