Commit cce57c8c 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 fdad758a
...@@ -85,13 +85,13 @@ static int __wrn_map_resources(struct platform_device *pdev) ...@@ -85,13 +85,13 @@ 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 (%08lx) failed\n", dev_err(&pdev->dev, "Remap for res %i (%pa) failed\n",
i, (long)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 %08lx (block %i) to %p\n", pr_debug("Remapped %pa (block %i) to %p\n",
(long)res->start, i, ptr); res->start, i, ptr);
wrn->bases[i] = ptr; wrn->bases[i] = ptr;
} }
return 0; return 0;
......
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