Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93039
b: refs/heads/master
c: 9ebed3e
h: refs/heads/master
i:
  93037: 76cd30e
  93035: 6c0afd4
  93031: 7d976f4
  93023: c29e25b
v: v3
  • Loading branch information
Anton Vorontsov authored and David Woodhouse committed Apr 22, 2008
1 parent fce9896 commit 50df01f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0797881d59ab93d7d92c55411e0573977d909d4
refs/heads/master: 9ebed3e60f9991e980e6c38b0edbdf9c8ff2ff6d
8 changes: 8 additions & 0 deletions trunk/drivers/mtd/nand/fsl_elbc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ static int fsl_elbc_chip_remove(struct fsl_elbc_mtd *priv)

nand_release(&priv->mtd);

kfree(priv->mtd.name);

if (priv->vbase)
iounmap(priv->vbase);

Expand Down Expand Up @@ -840,6 +842,12 @@ static int fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
goto err;
}

priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", res.start);
if (!priv->mtd.name) {
ret = -ENOMEM;
goto err;
}

ret = fsl_elbc_chip_init(priv);
if (ret)
goto err;
Expand Down

0 comments on commit 50df01f

Please sign in to comment.