docbook: make mtd nand module init static
authorH Hartley Sweeten <[email protected]>
Mon, 24 May 2010 00:02:30 +0000 (17:02 -0700)
committerLinus Torvalds <[email protected]>
Mon, 24 May 2010 14:30:55 +0000 (07:30 -0700)
In the example the module_init function should be static.

Signed-off-by: H Hartley Sweeten <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Cc: David Woodhouse <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/DocBook/mtdnand.tmpl

index 133cd6c3f3c15658986209f65859719d7407aca6..020ac80d4682b0af1ce06fb58c8fa4a2a949ccea 100644 (file)
@@ -269,7 +269,7 @@ static void board_hwcontrol(struct mtd_info *mtd, int cmd)
                        information about the device.
                </para>
                <programlisting>
-int __init board_init (void)
+static int __init board_init (void)
 {
        struct nand_chip *this;
        int err = 0;