aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/driver-api/mtdnand.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/driver-api/mtdnand.rst')
-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 2a5191b6d445..15449334b124 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);