Commit 2c4ae276 authored by Dan Carpenter's avatar Dan Carpenter Committed by David Woodhouse

mtd: docg4: fix printk() warnings

Gcc complains here:
drivers/mtd/nand/docg4.c: In function ‘probe_docg4’:
drivers/mtd/nand/docg4.c:1277:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘resource_size_t’ [-Wformat]
drivers/mtd/nand/docg4.c:1277:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘resource_size_t’ [-Wformat]

We have a standard way of printing these using a format string
extension.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 5289966e
...@@ -1270,9 +1270,7 @@ static int __init probe_docg4(struct platform_device *pdev) ...@@ -1270,9 +1270,7 @@ static int __init probe_docg4(struct platform_device *pdev)
virtadr = ioremap(r->start, resource_size(r)); virtadr = ioremap(r->start, resource_size(r));
if (!virtadr) { if (!virtadr) {
dev_err(dev, "Diskonchip ioremap failed: " dev_err(dev, "Diskonchip ioremap failed: %pR\n", r);
"0x%x bytes at 0x%x\n",
resource_size(r), r->start);
return -EIO; return -EIO;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment