docbook: make mtd nand module init static
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 May 2010 23:21:11 +0000 (16:21 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 21 May 2010 16:26:20 +0000 (17:26 +0100)
In the example the module_init function should be static.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
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;