Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64579
b: refs/heads/master
c: a98b38b
h: refs/heads/master
i:
  64577: 3466099
  64575: e74a23d
v: v3
  • Loading branch information
Pavel Pisa authored and Russell King committed Aug 30, 2007
1 parent 8b248a4 commit f376523
Show file tree
Hide file tree
Showing 2 changed files with 4 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: fd51bcc5dc4073b18308f25846aa3b421fa3c42e
refs/heads/master: a98b38b83db3d377ede6b72cebe7ed2dc4127766
5 changes: 3 additions & 2 deletions trunk/arch/arm/mach-imx/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ EXPORT_SYMBOL(imx_gpio_mode);

int imx_gpio_request(unsigned gpio, const char *label)
{
if(gpio >= (GPIO_PORT_MAX + 1) * 32)
if(gpio >= (GPIO_PORT_MAX + 1) * 32) {
printk(KERN_ERR "imx_gpio: Attempt to request nonexistent GPIO %d for \"%s\"\n",
gpio, label ? label : "?");
return -EINVAL;
}

if(test_and_set_bit(gpio, imx_gpio_alloc_map)) {
printk(KERN_ERR "imx_gpio: GPIO %d already used. Allocation for \"%s\" failed\n",
Expand All @@ -129,7 +130,7 @@ EXPORT_SYMBOL(imx_gpio_free);

int imx_gpio_direction_input(unsigned gpio)
{
imx_gpio_mode(gpio| GPIO_IN);
imx_gpio_mode(gpio | GPIO_IN | GPIO_GIUS | GPIO_DR);
return 0;
}

Expand Down

0 comments on commit f376523

Please sign in to comment.