Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332820
b: refs/heads/master
c: 15e8a8e
h: refs/heads/master
v: v3
  • Loading branch information
Chris Ball committed Sep 11, 2012
1 parent aa954af commit 6d6c997
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 0d4de8f5de2a642353834b183b16b367d39ff893
refs/heads/master: 15e8a8e42966162c207bb97ed55c803bc437eeae
8 changes: 7 additions & 1 deletion trunk/drivers/mmc/core/slot-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio)

ctx = host->slot.handler_priv;

return gpio_request_one(gpio, GPIOF_DIR_IN, ctx->ro_label);
ret = gpio_request_one(gpio, GPIOF_DIR_IN, ctx->ro_label);
if (ret < 0)
return ret;

ctx->ro_gpio = gpio;

return 0;
}
EXPORT_SYMBOL(mmc_gpio_request_ro);

Expand Down

0 comments on commit 6d6c997

Please sign in to comment.