This patch makes the needlessly global part_probes[] static.
Signed-off-by: Adrian Bunk <[email protected]>
---
054adb5b7a0d1ebaef61192ccf78df37aec42270 diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mtd/nand/cs553x_nand.c
index 8dab696..3370a80 100644
--- a/drivers/mtd/nand/cs553x_nand.c
+++ b/drivers/mtd/nand/cs553x_nand.c
@@ -279,7 +279,7 @@ static int is_geode(void)
#ifdef CONFIG_MTD_PARTITIONS
-const char *part_probes[] = { "cmdlinepart", NULL };
+static const char *part_probes[] = { "cmdlinepart", NULL };
#endif
Ühel kenal päeval, K, 2008-02-13 kell 23:30, kirjutas Adrian Bunk:
> This patch makes the needlessly global part_probes[] static.
>
> Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: Mart Raudsepp <[email protected]>
Note that many other drivers in mtd/nand have the same part_probes array
global instead of static.