2008-02-13 21:39:35

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make mtd/nand/cs553x_nand.c:part_probes[] static

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



2008-02-14 07:52:18

by Mart Raudsepp

[permalink] [raw]
Subject: Re: [2.6 patch] make mtd/nand/cs553x_nand.c:part_probes[] static


Ü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.