]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: don't free the global data too early
authorLiu Shuo <b35362@freescale.com>
Tue, 28 Jun 2011 01:50:51 +0000 (09:50 +0800)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 16 Aug 2011 13:46:01 +0000 (16:46 +0300)
commit1579ebb6f1e57866f86ceced4a3dd68258810dc5
tree6a4afc4fced2c71ba8d6eeb309621a81b2de1935
parentff347e4fde04218614052332ed6fa2888128742c
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>
drivers/mtd/nand/fsl_elbc_nand.c