Commit be23d080 authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Alessandro Rubini

wr_nic: fix printouts in device.c

This change adds warnings, but they will disappear after move to 3.14,
where %pa is supported.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent e3f45b0e
...@@ -82,12 +82,12 @@ static int __wrn_map_resources(struct platform_device *pdev) ...@@ -82,12 +82,12 @@ static int __wrn_map_resources(struct platform_device *pdev)
continue; continue;
ptr = ioremap(res->start, res->end + 1 - res->start); ptr = ioremap(res->start, res->end + 1 - res->start);
if (!ptr) { if (!ptr) {
dev_err(&pdev->dev, "Remap for res %i (%08x) failed\n", dev_err(&pdev->dev, "Remap for res %i (%pa) failed\n",
i, res->start); i, res->start);
return -ENOMEM; return -ENOMEM;
} }
/* Hack: find the block number and fill the array */ /* Hack: find the block number and fill the array */
pr_debug("Remapped %08x (block %i) to %p\n", pr_debug("Remapped %pa (block %i) to %p\n",
res->start, i, ptr); res->start, i, ptr);
wrn->bases[i] = ptr; wrn->bases[i] = ptr;
} }
......
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