mtd: rawnand: free the nand_device object
authorChristophe Kerello <christophe.kerello@st.com>
Thu, 23 Jan 2020 08:22:48 +0000 (09:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:44 +0000 (10:36 +0200)
commit700bccb8e9a2ef43c4ce5f3aedd663973a4d7aea
tree59ce99595381d33b5a2870adf10b2cd152219b23
parent0c72ec11d8bd54975266ea09d1f65160fadd2f4c
mtd: rawnand: free the nand_device object

commit 009264605cdf1b12962c3a46f75818d05452e890 upstream.

This patch releases the resources allocated in nanddev_init function.

Fixes: a7ab085d7c16 ("mtd: rawnand: Initialize the nand_device object")
Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1579767768-32295-1-git-send-email-christophe.kerello@st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/nand_base.c