[MTD] [NAND] fsl_elbc_nand.c: fix printk warning

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Jul 30 10:59:01 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=650da9d0b7c401619c1df2953e975606b8d5dcbb
Commit:     650da9d0b7c401619c1df2953e975606b8d5dcbb
Parent:     74216be41a61a809ad17b091068307e3d89f4a2f
Author:     akpm at linux-foundation.org <akpm at linux-foundation.org>
AuthorDate: Tue Jul 29 21:27:14 2008 -0700
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed Jul 30 12:02:34 2008 +0100

    [MTD] [NAND] fsl_elbc_nand.c: fix printk warning
    
    drivers/mtd/nand/fsl_elbc_nand.c:890: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
    
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/fsl_elbc_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c
index 9dff513..98ad3ce 100644
--- a/drivers/mtd/nand/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/fsl_elbc_nand.c
@@ -887,7 +887,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
 		goto err;
 	}
 
-	priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", res.start);
+	priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", (unsigned)res.start);
 	if (!priv->mtd.name) {
 		ret = -ENOMEM;
 		goto err;



More information about the linux-mtd-cvs mailing list