Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36626
b: refs/heads/master
c: 5a4e86d
h: refs/heads/master
v: v3
  • Loading branch information
Imre Deak authored and Tony Lindgren committed Sep 25, 2006
1 parent 6aa95ff commit c2ca0d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0e0a198690f5769e5687cb0d66e4486796ccdef0
refs/heads/master: 5a4e86daa29e73a02ce8eb484837813e341a0b8a
6 changes: 3 additions & 3 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@
#define OMAP24XX_GPIO_CLEARDATAOUT 0x0090
#define OMAP24XX_GPIO_SETDATAOUT 0x0094

#define OMAP_MPUIO_MASK (~OMAP_MAX_GPIO_LINES & 0xff)

struct gpio_bank {
void __iomem *base;
u16 irq;
Expand Down Expand Up @@ -216,11 +214,13 @@ static inline int gpio_valid(int gpio)
{
if (gpio < 0)
return -1;
#ifndef CONFIG_ARCH_OMAP24XX
if (OMAP_GPIO_IS_MPUIO(gpio)) {
if ((gpio & OMAP_MPUIO_MASK) > 16)
if (gpio >= MAX_GPIO_LINES + 16)
return -1;
return 0;
}
#endif
#ifdef CONFIG_ARCH_OMAP15XX
if (cpu_is_omap15xx() && gpio < 16)
return 0;
Expand Down

0 comments on commit c2ca0d6

Please sign in to comment.