aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/mxc_nand.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-06-06 18:36:39 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-07-06 18:17:05 +0100
commit874d72c4fe07713c4889c944d3c7ebbce352c762 (patch)
tree16db5ddbe2f4cab545e64dae0d5b9fad43d503db /drivers/mtd/nand/mxc_nand.c
parent9d6367f4f7835131b2b3987d134fd4c44636fa8d (diff)
mtd: elbc nand: use drvdata to only remove the relevant chip
Previously the remove method was looping and removing all chips, which is obviously not the right thing to do — left over from when the driver was organized differently and that was the remove method for the entire controller. This would result in bad things happening if you have more than one NAND chip, and remove the module. This also fixes priv->dev to properly point to the chip's device rather than the controller's. Until now priv->dev was only used for error/debug prints (and it's an improvement there), so this shouldn't break anything. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/mxc_nand.c')
0 files changed, 0 insertions, 0 deletions