[MTD] Make init_sbc8240_mtd function static

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Dec 10 08:59:01 EST 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9ee49fa5c1b58453cb97969a8282fd7bbf0ad0d4
Commit:     9ee49fa5c1b58453cb97969a8282fd7bbf0ad0d4
Parent:     26eb10857003e1a738e87aa71f0c91ceb7fc0de4
Author:     Dmitri Vorobiev <dmitri.vorobiev at movial.fi>
AuthorDate: Tue Nov 25 02:55:06 2008 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed Dec 10 13:00:23 2008 +0000

    [MTD] Make init_sbc8240_mtd function static
    
    The function init_sbc8240_mtd is not called from outside the
    module drivers/mtd/maps/sbc8240.c where it is defined, so it
    can become static. Add the needed keyword.
    
    Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev at movial.fi>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/sbc8240.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/sbc8240.c b/drivers/mtd/maps/sbc8240.c
index 6e1e99c..d5374cd 100644
--- a/drivers/mtd/maps/sbc8240.c
+++ b/drivers/mtd/maps/sbc8240.c
@@ -136,7 +136,7 @@ static struct mtd_part_def sbc8240_part_banks[NUM_FLASH_BANKS];
 #endif	/* CONFIG_MTD_PARTITIONS */
 
 
-int __init init_sbc8240_mtd (void)
+static int __init init_sbc8240_mtd (void)
 {
 	static struct _cjs {
 		u_long addr;



More information about the linux-mtd-cvs mailing list