]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: fsl_ifc_nand: remove incorrect kfree()
authorBrian Norris <computersforpeace@gmail.com>
Fri, 29 Mar 2013 04:28:56 +0000 (21:28 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 29 May 2013 06:56:57 +0000 (09:56 +0300)
commit7320a1c3d9a1359e5b58b94a9241254f61ec2bf0
treee323246d0bdbbb3f1be554e030b25aadd676ac0e
parent7026e9844112fa33e5ffcd562daf0c919b16a9d1
mtd: fsl_ifc_nand: remove incorrect kfree()

The struct fsl_ifc_mtd is allocated with devm_kzalloc, so its memory
is "managed" automatically by the kernel. That is, we do not need to
free it explicitly; it will be freed when the device is removed. And we
*certainly* shouldn't free it with a regular kfree().

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/fsl_ifc_nand.c