From: Liu Shuo Date: Tue, 28 Jun 2011 01:50:51 +0000 (+0800) Subject: mtd: nand: don't free the global data too early X-Git-Tag: v3.2-rc1~14^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57b078a09bf0ab3f0babcfe6ecb2ac226d9178be;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed