Patchwork [2/3] Blackfin NFC Driver: mark bf5xx_nand_add_partition() as __devinit

login
register
mail settings
Submitter Bryan Wu
Date Jan. 7, 2009, 4:41 p.m.
Message ID <1231346519-28603-3-git-send-email-cooloney@kernel.org>
Download mbox | patch
Permalink /patch/17166/
State New
Headers show

Comments

Bryan Wu - Jan. 7, 2009, 4:41 p.m.
From: Mike Frysinger <vapier.adi@gmail.com>

the bf5xx_nand_add_partition() func is only called by __devinit
functions, so put it into the __devinit section as well

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
 drivers/mtd/nand/bf5xx_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
index 5c6056e..520314d 100644
--- a/drivers/mtd/nand/bf5xx_nand.c
+++ b/drivers/mtd/nand/bf5xx_nand.c
@@ -630,7 +630,7 @@  static int bf5xx_nand_hw_init(struct bf5xx_nand_info *info)
 /*
  * Device management interface
  */
-static int bf5xx_nand_add_partition(struct bf5xx_nand_info *info)
+static int __devinit bf5xx_nand_add_partition(struct bf5xx_nand_info *info)
 {
 	struct mtd_info *mtd = &info->mtd;