[MTD] Make h720x_mtd_init function static

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


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

    [MTD] Make h720x_mtd_init function static
    
    The function h720x_mtd_init is not used outside of the file
    drivers/mtd/maps/h720x-flash.c and can therefore become static.
    This patch adds the necessary keyword.
    
    Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev at movial.fi>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/h720x-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/h720x-flash.c b/drivers/mtd/maps/h720x-flash.c
index 3b959fa..72c724f 100644
--- a/drivers/mtd/maps/h720x-flash.c
+++ b/drivers/mtd/maps/h720x-flash.c
@@ -65,7 +65,7 @@ static const char *probes[] = { "cmdlinepart", NULL };
 /*
  * Initialize FLASH support
  */
-int __init h720x_mtd_init(void)
+static int __init h720x_mtd_init(void)
 {
 
 	char	*part_type = NULL;



More information about the linux-mtd-cvs mailing list