[MTD] Make init_msp_flash function static

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


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

    [MTD] Make init_msp_flash function static
    
    The function init_msp_flash, which is not used outside of
    drivers/mtd/maps/pmcmsp-flash.c, can become static. This
    patch adds 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/pmcmsp-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/pmcmsp-flash.c b/drivers/mtd/maps/pmcmsp-flash.c
index f43ba28..4768bd5 100644
--- a/drivers/mtd/maps/pmcmsp-flash.c
+++ b/drivers/mtd/maps/pmcmsp-flash.c
@@ -48,7 +48,7 @@ static int fcnt;
 
 #define DEBUG_MARKER printk(KERN_NOTICE "%s[%d]\n", __func__, __LINE__)
 
-int __init init_msp_flash(void)
+static int __init init_msp_flash(void)
 {
 	int i, j;
 	int offset, coff;



More information about the linux-mtd-cvs mailing list