Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191999
b: refs/heads/master
c: a002641
h: refs/heads/master
i:
  191997: 6fe3a87
  191995: 346934a
  191991: 0e1745a
  191983: 2c0e54e
  191967: b04c712
  191935: 011b7b0
  191871: e8a77f4
  191743: 9900681
  191487: 07350f1
v: v3
  • Loading branch information
Vasily Khoruzhick authored and Ben Dooks committed May 18, 2010
1 parent bceeffc commit 23a84c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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: fcef85c0c122f90f57f2f3ef0caeaf6404d6e8f3
refs/heads/master: a0026418d3d99b68dbd6c91f277d6f764fe41956
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c2410/include/mach/gpio-track.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static inline struct s3c_gpio_chip *s3c_gpiolib_getchip(unsigned int pin)
{
struct s3c_gpio_chip *chip;

if (pin > S3C2410_GPG(10))
if (pin > S3C_GPIO_END)
return NULL;

chip = &s3c24xx_gpios[pin/32];
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-s3c2410/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@
* devices that need GPIO.
*/

#ifdef CONFIG_CPU_S3C244X
#define ARCH_NR_GPIOS (32 * 9 + CONFIG_S3C24XX_GPIO_EXTRA)
#else
#define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA)
#endif

#include <asm-generic/gpio.h>
#include <mach/gpio-nrs.h>
#include <mach/gpio-fns.h>

#ifdef CONFIG_CPU_S3C24XX
#define S3C_GPIO_END (S3C2410_GPIO_BANKJ + 32)
#else
#define S3C_GPIO_END (S3C2410_GPIO_BANKH + 32)
#endif

0 comments on commit 23a84c0

Please sign in to comment.