Skip to contentSkip to conversation

DocBook/mtdnand.tmpl: module_init() functions are static

PATCH New H Hartley Sweeten 1 participant 1 message Jan 19, 2010 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DocBook/mtdnand.tmpl: module_init() functions are static

In the example the module_init function should be static.

---

Documentation/DocBook/mtdnand.tmpl +1 -1
index 5e7d84b..60170a9 100644
@@ -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;