Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137497
b: refs/heads/master
c: e51151a
h: refs/heads/master
i:
  137495: 98e630f
v: v3
  • Loading branch information
Adrian Hunter authored and Tony Lindgren committed Mar 24, 2009
1 parent 81b794f commit 6256115
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 8d75e98b5880f8f02be68ddc3cc4e3d433630d7b
refs/heads/master: e51151a53fc85fb1730ec4d6c1474275dcdb9ec3
7 changes: 5 additions & 2 deletions trunk/arch/arm/mach-omap2/mmc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,11 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
return;
}

snprintf(twl->name, ARRAY_SIZE(twl->name), "mmc%islot%i",
c->mmc, 1);
if (c->name)
strncpy(twl->name, c->name, HSMMC_NAME_LEN);
else
snprintf(twl->name, ARRAY_SIZE(twl->name),
"mmc%islot%i", c->mmc, 1);
mmc->slots[0].name = twl->name;
mmc->nr_slots = 1;
mmc->slots[0].wires = c->wires;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-omap2/mmc-twl4030.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct twl4030_hsmmc_info {
bool cover_only; /* No card detect - just cover switch */
int gpio_cd; /* or -EINVAL */
int gpio_wp; /* or -EINVAL */
char *name; /* or NULL for default */
struct device *dev; /* returned: pointer to mmc adapter */
};

Expand Down

0 comments on commit 6256115

Please sign in to comment.