Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307952
b: refs/heads/master
c: 9a59701
h: refs/heads/master
v: v3
  • Loading branch information
Lee Jones authored and Chris Ball committed May 4, 2012
1 parent bab495c commit a1edc5a
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: 8dde8c467441069144d2430d30fca697c8fae2d3
refs/heads/master: 9a597016058520665452390df919428e4edd7770
5 changes: 3 additions & 2 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/clk.h>
#include <linux/scatterlist.h>
#include <linux/gpio.h>
#include <linux/of_gpio.h>
#include <linux/regulator/consumer.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
Expand Down Expand Up @@ -1203,11 +1204,11 @@ static void mmci_dt_populate_generic_pdata(struct device_node *np,
{
int bus_width = 0;

of_property_read_u32(np, "wp-gpios", &pdata->gpio_wp);
pdata->gpio_wp = of_get_named_gpio(np, "wp-gpios", 0);
if (!pdata->gpio_wp)
pdata->gpio_wp = -1;

of_property_read_u32(np, "cd-gpios", &pdata->gpio_cd);
pdata->gpio_cd = of_get_named_gpio(np, "cd-gpios", 0);
if (!pdata->gpio_cd)
pdata->gpio_cd = -1;

Expand Down

0 comments on commit a1edc5a

Please sign in to comment.