Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296932
b: refs/heads/master
c: 2c836f7
h: refs/heads/master
v: v3
  • Loading branch information
Tarun Kanti DebBarma committed Mar 20, 2012
1 parent b60d4e6 commit f289d8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8276536cec38bc6bde30d0aa67716f22b9b9705a
refs/heads/master: 2c836f7ea5e7b5eec2a798e02b1d76ea791fa094
7 changes: 5 additions & 2 deletions trunk/drivers/gpio/gpio-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ static void _set_gpio_dataout_reg(struct gpio_bank *bank, int gpio, int enable)
void __iomem *reg = bank->base;
u32 l = GPIO_BIT(bank, gpio);

if (enable)
if (enable) {
reg += bank->regs->set_dataout;
else
bank->context.dataout |= l;
} else {
reg += bank->regs->clr_dataout;
bank->context.dataout &= ~l;
}

__raw_writel(l, reg);
}
Expand Down

0 comments on commit f289d8f

Please sign in to comment.