Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226478
b: refs/heads/master
c: 9a74805
h: refs/heads/master
v: v3
  • Loading branch information
Tony Lindgren committed Dec 8, 2010
1 parent 0bddac7 commit 2c38a78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 2fae7fbed072705d91e09ed393b2e580b2d895fc
refs/heads/master: 9a748053f5f58a77cd71864f1d7b804175b0e47d
12 changes: 6 additions & 6 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1694,16 +1694,16 @@ static struct clk * gpio5_fck;
static struct clk *gpio_iclks[OMAP34XX_NR_GPIOS];
#endif

static void __init omap_gpio_show_rev(void)
static void __init omap_gpio_show_rev(struct gpio_bank *bank)
{
u32 rev;

if (cpu_is_omap16xx())
rev = __raw_readw(gpio_bank[1].base + OMAP1610_GPIO_REVISION);
if (cpu_is_omap16xx() && !(bank->method != METHOD_MPUIO))
rev = __raw_readw(bank->base + OMAP1610_GPIO_REVISION);
else if (cpu_is_omap24xx() || cpu_is_omap34xx())
rev = __raw_readl(gpio_bank[0].base + OMAP24XX_GPIO_REVISION);
rev = __raw_readl(bank->base + OMAP24XX_GPIO_REVISION);
else if (cpu_is_omap44xx())
rev = __raw_readl(gpio_bank[0].base + OMAP4_GPIO_REVISION);
rev = __raw_readl(bank->base + OMAP4_GPIO_REVISION);
else
return;

Expand Down Expand Up @@ -1963,7 +1963,7 @@ static int __init _omap_gpio_init(void)
}
}

omap_gpio_show_rev();
omap_gpio_show_rev(bank);

return 0;
}
Expand Down

0 comments on commit 2c38a78

Please sign in to comment.