Commit 51611a12 authored by Wolfgang Grandegger's avatar Wolfgang Grandegger Committed by David S. Miller

can: sja1000_of_platform: fix build problems with printk format

According to "Documentation/printk-formats.txt", if the type is
dependent on a config option for its size, like resource_size_t,
we should use a format specifier of its largest possible type and
explicitly cast to it.
Signed-off-by: default avatarWolfgang Grandegger <wg@grandegger.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf12691d
...@@ -108,15 +108,17 @@ static int __devinit sja1000_ofp_probe(struct of_device *ofdev, ...@@ -108,15 +108,17 @@ static int __devinit sja1000_ofp_probe(struct of_device *ofdev,
res_size = resource_size(&res); res_size = resource_size(&res);
if (!request_mem_region(res.start, res_size, DRV_NAME)) { if (!request_mem_region(res.start, res_size, DRV_NAME)) {
dev_err(&ofdev->dev, "couldn't request %#x..%#x\n", dev_err(&ofdev->dev, "couldn't request %#llx..%#llx\n",
res.start, res.end); (unsigned long long)res.start,
(unsigned long long)res.end);
return -EBUSY; return -EBUSY;
} }
base = ioremap_nocache(res.start, res_size); base = ioremap_nocache(res.start, res_size);
if (!base) { if (!base) {
dev_err(&ofdev->dev, "couldn't ioremap %#x..%#x\n", dev_err(&ofdev->dev, "couldn't ioremap %#llx..%#llx\n",
res.start, res.end); (unsigned long long)res.start,
(unsigned long long)res.end);
err = -ENOMEM; err = -ENOMEM;
goto exit_release_mem; goto exit_release_mem;
} }
......
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