summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/qcom_nandc.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-09-06 14:05:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-25 15:42:00 +0200
commit5bcfcbfc40192e8198d9d3997f2f15c5a5c964b2 (patch)
tree54dbe5d1aacbf6cafea8c409e10dd72de39cc91a /drivers/mtd/nand/qcom_nandc.c
parent5bc796dcac257ebc2cdb601b978b7ff7e1f19e01 (diff)
downloadlinux-stable-5bcfcbfc40192e8198d9d3997f2f15c5a5c964b2.tar.gz
linux-stable-5bcfcbfc40192e8198d9d3997f2f15c5a5c964b2.tar.bz2
linux-stable-5bcfcbfc40192e8198d9d3997f2f15c5a5c964b2.zip
mtd: rawnand: Pass a nand_chip object to nand_release()
[ Upstream commit 59ac276f22270fb2094910f9a734c17f41c25e70 ] Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. Now is nand_release()'s turn. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mtd/nand/qcom_nandc.c')
-rw-r--r--drivers/mtd/nand/qcom_nandc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/qcom_nandc.c b/drivers/mtd/nand/qcom_nandc.c
index 09d5f7df6023..65d1be2c3049 100644
--- a/drivers/mtd/nand/qcom_nandc.c
+++ b/drivers/mtd/nand/qcom_nandc.c
@@ -2760,7 +2760,7 @@ static int qcom_nandc_remove(struct platform_device *pdev)
struct qcom_nand_host *host;
list_for_each_entry(host, &nandc->host_list, node)
- nand_release(nand_to_mtd(&host->chip));
+ nand_release(&host->chip);
qcom_nandc_unalloc(nandc);