[MTD] Make init_mbx 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=9cdd52fa973a9021c4c2670ac69a301ae31c8784
Commit:     9cdd52fa973a9021c4c2670ac69a301ae31c8784
Parent:     1aed165a602b80428bbdf17478c629169d96eda1
Author:     Dmitri Vorobiev <dmitri.vorobiev at movial.fi>
AuthorDate: Tue Nov 25 02:55:01 2008 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed Dec 10 13:01:20 2008 +0000

    [MTD] Make init_mbx function static
    
    The function init_mbx can become static, because it is not used
    outside the file drivers/mtd/maps/mbx860.c. 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/mbx860.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/mbx860.c b/drivers/mtd/maps/mbx860.c
index 706f673..0eb5a7c 100644
--- a/drivers/mtd/maps/mbx860.c
+++ b/drivers/mtd/maps/mbx860.c
@@ -55,7 +55,7 @@ struct map_info mbx_map = {
 	.bankwidth = 4,
 };
 
-int __init init_mbx(void)
+static int __init init_mbx(void)
 {
 	printk(KERN_NOTICE "Motorola MBX flash device: 0x%x at 0x%x\n", WINDOW_SIZE*4, WINDOW_ADDR);
 	mbx_map.virt = ioremap(WINDOW_ADDR, WINDOW_SIZE * 4);



More information about the linux-mtd-cvs mailing list