summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-09-06 15:05:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-25 16:33:08 +0300
commiteef1783440271af718380ad4dfc23ba5357874cc (patch)
treebb003681539137f74cc5dc51ca62b55f150af423 /Documentation
parent4c9539a319254b8d863ed7d0f8764953f144da60 (diff)
downloadlinux-eef1783440271af718380ad4dfc23ba5357874cc.tar.xz
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 'Documentation')
-rw-r--r--Documentation/driver-api/mtdnand.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/driver-api/mtdnand.rst b/Documentation/driver-api/mtdnand.rst
index 1ab6f35b6410..5470a3d6bd9e 100644
--- a/Documentation/driver-api/mtdnand.rst
+++ b/Documentation/driver-api/mtdnand.rst
@@ -277,7 +277,7 @@ unregisters the partitions in the MTD layer.
static void __exit board_cleanup (void)
{
/* Release resources, unregister device */
- nand_release (board_mtd);
+ nand_release (mtd_to_nand(board_mtd));
/* unmap physical address */
iounmap(baseaddr);