|
@@ -402,8 +402,11 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
|
|
return;
|
|
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->slots[0].name = twl->name;
|
|
mmc->nr_slots = 1;
|
|
mmc->nr_slots = 1;
|
|
mmc->slots[0].wires = c->wires;
|
|
mmc->slots[0].wires = c->wires;
|