[MTD] Make init_flagadm function static

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


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

    [MTD] Make init_flagadm function static
    
    The module init function init_flagadm does not need to be global,
    so add the needed keyword to drivers/mtd/maps/cfi_flagadm.c.
    
    Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev at movial.fi>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/cfi_flagadm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/cfi_flagadm.c b/drivers/mtd/maps/cfi_flagadm.c
index 0ecc3f6..b4ed816 100644
--- a/drivers/mtd/maps/cfi_flagadm.c
+++ b/drivers/mtd/maps/cfi_flagadm.c
@@ -88,7 +88,7 @@ struct mtd_partition flagadm_parts[] = {
 
 static struct mtd_info *mymtd;
 
-int __init init_flagadm(void)
+static int __init init_flagadm(void)
 {
 	printk(KERN_NOTICE "FlagaDM flash device: %x at %x\n",
 			FLASH_SIZE, FLASH_PHYS_ADDR);



More information about the linux-mtd-cvs mailing list