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)
continue;
ptr = ioremap(res->start, res->end + 1 - res->start);
if (!ptr) {
dev_err(&pdev->dev, "Remap for res %i (%08lx) failed\n",
i, (long)res->start);
dev_err(&pdev->dev, "Remap for res %i (%pa) failed\n",
i, res->start);
return -ENOMEM;
}
/* Hack: find the block number and fill the array */
pr_debug("Remapped %08lx (block %i) to %p\n",
(long)res->start, i, ptr);
pr_debug("Remapped %pa (block %i) to %p\n",
res->start, i, ptr);
wrn->bases[i] = ptr;
}
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