Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336274
b: refs/heads/master
c: d8714e8
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Chris Ball committed Dec 6, 2012
1 parent 8d765d2 commit 5ca8084
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 46b76035c12140caeda64dfd2557557263a30039
refs/heads/master: d8714e87b62b1c39ae8f3cef9a32121ad1c9a7ae
5 changes: 4 additions & 1 deletion trunk/drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev)
{
struct omap_mmc_platform_data *pdata;
struct device_node *np = dev->of_node;
u32 bus_width;
u32 bus_width, max_freq;

pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
if (!pdata)
Expand All @@ -1706,6 +1706,9 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev)
if (of_find_property(np, "ti,needs-special-reset", NULL))
pdata->slots[0].features |= HSMMC_HAS_UPDATED_RESET;

if (!of_property_read_u32(np, "max-frequency", &max_freq))
pdata->max_freq = max_freq;

return pdata;
}
#else
Expand Down

0 comments on commit 5ca8084

Please sign in to comment.