Skip to content

Commit

Permalink
[MTD] [NAND] fsl_elbc_nand.c: fix printk warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akpm@linux-foundation.org authored and David Woodhouse committed Jul 30, 2008
1 parent 74216be commit 650da9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/fsl_elbc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 650da9d

Please sign in to comment.