diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2009-03-23 21:23:48 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-03-23 21:51:23 -0400 |
commit | e51151a53fc85fb1730ec4d6c1474275dcdb9ec3 (patch) | |
tree | e19dfa9008e5e4088c2cc8e438d8cab19c1fcc82 /arch/arm/mach-omap2/mmc-twl4030.c | |
parent | 8d75e98b5880f8f02be68ddc3cc4e3d433630d7b (diff) |
ARM: OMAP3: mmc-twl4030 allow arbitrary slot names, v3
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mmc-twl4030.c')
-rw-r--r-- | arch/arm/mach-omap2/mmc-twl4030.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index e2b2aeb713d8..dc40b3e72206 100644 --- a/arch/arm/mach-omap2/mmc-twl4030.c +++ b/arch/arm/mach-omap2/mmc-twl4030.c | |||
@@ -402,8 +402,11 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
402 | return; | 402 | return; |
403 | } | 403 | } |
404 | 404 | ||
405 | snprintf(twl->name, ARRAY_SIZE(twl->name), "mmc%islot%i", | 405 | if (c->name) |
406 | c->mmc, 1); | 406 | strncpy(twl->name, c->name, HSMMC_NAME_LEN); |
407 | else | ||
408 | snprintf(twl->name, ARRAY_SIZE(twl->name), | ||
409 | "mmc%islot%i", c->mmc, 1); | ||
407 | mmc->slots[0].name = twl->name; | 410 | mmc->slots[0].name = twl->name; |
408 | mmc->nr_slots = 1; | 411 | mmc->nr_slots = 1; |
409 | mmc->slots[0].wires = c->wires; | 412 | mmc->slots[0].wires = c->wires; |