Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201331
b: refs/heads/master
c: 6a99ad4
h: refs/heads/master
i:
  201329: 7b4c86b
  201327: 1ccd7d5
v: v3
  • Loading branch information
Jon Povey authored and Linus Torvalds committed Jul 27, 2010
1 parent 5aef9f2 commit d01f877
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 952e1c6632ab5060a2323624d2908f31d62fc0a3
refs/heads/master: 6a99ad4a2e1b1693ffe8e40cc0dddfc633ce2a50
7 changes: 4 additions & 3 deletions trunk/drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,12 @@ EXPORT_SYMBOL_GPL(gpio_sysfs_set_active_low);
void gpio_unexport(unsigned gpio)
{
struct gpio_desc *desc;
int status = -EINVAL;
int status = 0;

if (!gpio_is_valid(gpio))
if (!gpio_is_valid(gpio)) {
status = -EINVAL;
goto done;
}

mutex_lock(&sysfs_lock);

Expand All @@ -911,7 +913,6 @@ void gpio_unexport(unsigned gpio)
clear_bit(FLAG_EXPORT, &desc->flags);
put_device(dev);
device_unregister(dev);
status = 0;
} else
status = -ENODEV;
}
Expand Down

0 comments on commit d01f877

Please sign in to comment.