Patchwork [03/20,MTD] Make init_flagadm function static

login
register
mail settings
Submitter Dmitri Vorobiev
Date Nov. 25, 2008, 12:54 a.m.
Message ID <1227574511-23879-4-git-send-email-dmitri.vorobiev@movial.fi>
Download mbox | patch
Permalink /patch/11733/
State Accepted
Headers show

Comments

Dmitri Vorobiev - Nov. 25, 2008, 12:54 a.m.
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@movial.fi>
---
 drivers/mtd/maps/cfi_flagadm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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);