Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332634
b: refs/heads/master
c: 874d72c
h: refs/heads/master
v: v3
  • Loading branch information
Scott Wood authored and David Woodhouse committed Jul 6, 2012
1 parent 5c1540e commit 98b802e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 9d6367f4f7835131b2b3987d134fd4c44636fa8d
refs/heads/master: 874d72c4fe07713c4889c944d3c7ebbce352c762
10 changes: 5 additions & 5 deletions trunk/drivers/mtd/nand/fsl_elbc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ static int __devinit fsl_elbc_nand_probe(struct platform_device *pdev)
elbc_fcm_ctrl->chips[bank] = priv;
priv->bank = bank;
priv->ctrl = fsl_lbc_ctrl_dev;
priv->dev = dev;
priv->dev = &pdev->dev;
dev_set_drvdata(priv->dev, priv);

priv->vbase = ioremap(res.start, resource_size(&res));
if (!priv->vbase) {
Expand Down Expand Up @@ -962,11 +963,10 @@ static int __devinit fsl_elbc_nand_probe(struct platform_device *pdev)

static int fsl_elbc_nand_remove(struct platform_device *pdev)
{
int i;
struct fsl_elbc_fcm_ctrl *elbc_fcm_ctrl = fsl_lbc_ctrl_dev->nand;
for (i = 0; i < MAX_BANKS; i++)
if (elbc_fcm_ctrl->chips[i])
fsl_elbc_chip_remove(elbc_fcm_ctrl->chips[i]);
struct fsl_elbc_mtd *priv = dev_get_drvdata(&pdev->dev);

fsl_elbc_chip_remove(priv);

mutex_lock(&fsl_elbc_nand_mutex);
elbc_fcm_ctrl->counter--;
Expand Down

0 comments on commit 98b802e

Please sign in to comment.