Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180527
b: refs/heads/master
c: b49199c
h: refs/heads/master
i:
  180525: 482c84c
  180523: cebb4a3
  180519: b0a597c
  180511: c0355c4
v: v3
  • Loading branch information
Linus Torvalds committed Feb 12, 2010
1 parent aed78dd commit 1f16342
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 07ccb7bf2c928fef4fea2cda69ba2e23479578db
refs/heads/master: b49199c827d81c6dfb8ebb325292aa6b94b45e3d
7 changes: 6 additions & 1 deletion trunk/arch/arm/mach-omap2/mmc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
{
struct twl4030_hsmmc_info *c;
int nr_hsmmc = ARRAY_SIZE(hsmmc_data);
int i;

if (cpu_is_omap2430()) {
control_pbias_offset = OMAP243X_CONTROL_PBIAS_LITE;
Expand All @@ -434,7 +435,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
mmc = kzalloc(sizeof(struct omap_mmc_platform_data), GFP_KERNEL);
if (!mmc) {
pr_err("Cannot allocate memory for mmc device!\n");
return;
goto done;
}

if (c->name)
Expand Down Expand Up @@ -532,6 +533,10 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
continue;
c->dev = mmc->dev;
}

done:
for (i = 0; i < nr_hsmmc; i++)
kfree(hsmmc_data[i]);
}

#endif

0 comments on commit 1f16342

Please sign in to comment.