diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-06 14:05:15 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-10-03 11:12:25 +0200 |
commit | 59ac276f22270fb2094910f9a734c17f41c25e70 (patch) | |
tree | ca9974cf0daf3a3e926393797d8264badd76e761 /Documentation/driver-api/mtdnand.rst | |
parent | mtd: rawnand: Pass a nand_chip object to nand_scan() (diff) | |
download | linux-59ac276f22270fb2094910f9a734c17f41c25e70.tar.xz linux-59ac276f22270fb2094910f9a734c17f41c25e70.zip |
mtd: rawnand: Pass a nand_chip object to nand_release()
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>
Diffstat (limited to 'Documentation/driver-api/mtdnand.rst')
-rw-r--r-- | Documentation/driver-api/mtdnand.rst | 2 |
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); |