commit | 57b078a09bf0ab3f0babcfe6ecb2ac226d9178be | [log] [tgz] |
---|---|---|
author | Liu Shuo <b35362@freescale.com> | Tue Jun 28 09:50:51 2011 +0800 |
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | Sun Sep 11 15:02:14 2011 +0300 |
tree | 33cc32cff12c478f7d4fc8e184430f388f69b491 | |
parent | b4ca74738ab6c9ed8190b06cd7bf785dc98c640e [diff] |
mtd: nand: don't free the global data too early The global data fsl_lbc_ctrl_dev->nand don't have to be freed in fsl_elbc_chip_remove(). The right place to do that is in fsl_elbc_nand_remove() if elbc_fcm_ctrl->counter is zero. Signed-off-by: Liu Shuo <b35362@freescale.com> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>