docbook: make mtd nand module init static
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 24 May 2010 00:02:30 +0000 (17:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <hsweeten@visionengravers.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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;