[MTD] [NAND] fsl_elbc_nand.c: fix printk warning
authorakpm@linux-foundation.org <akpm@linux-foundation.org>
Wed, 30 Jul 2008 04:27:14 +0000 (21:27 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 30 Jul 2008 11:02:34 +0000 (12:02 +0100)
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@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsl_elbc_nand.c

index 9dff51351f4fba32559541ce50c175d48ef52828..98ad3cefcaf47d5678c81b9a4481ff4c6bec5b4e 100644 (file)
@@ -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;