Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137491
b: refs/heads/master
c: 8466032
h: refs/heads/master
i:
  137489: 10f78ec
  137487: 3d6a872
v: v3
  • Loading branch information
Adrian Hunter authored and Tony Lindgren committed Mar 24, 2009
1 parent 9f889ea commit 12c4bb3
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: b9d766c767d53a9be1f741a53fe8151354ba1da3
refs/heads/master: 8466032d862a2e52d73af3311bc97f950aaa36c8
5 changes: 3 additions & 2 deletions trunk/arch/arm/mach-omap2/mmc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static struct twl_mmc_controller {
struct omap_mmc_platform_data *mmc;
u8 twl_vmmc_dev_grp;
u8 twl_mmc_dedicated;
char name[HSMMC_NAME_LEN];
char name[HSMMC_NAME_LEN + 1];
} hsmmc[] = {
{
.twl_vmmc_dev_grp = VMMC1_DEV_GRP,
Expand Down Expand Up @@ -349,7 +349,8 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
return;
}

sprintf(twl->name, "mmc%islot%i", c->mmc, 1);
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].ocr_mask = MMC_VDD_165_195 |
Expand Down

0 comments on commit 12c4bb3

Please sign in to comment.