drivers/net/can/sja1000: Use printf extension %pR for struct resource
Using %pR standardizes the struct resource output. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
d8ee707114
Коммит
b1323c8fa1
|
@ -107,17 +107,13 @@ static int __devinit sja1000_ofp_probe(struct platform_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 %#llx..%#llx\n",
|
dev_err(&ofdev->dev, "couldn't request %pR\n", &res);
|
||||||
(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 %#llx..%#llx\n",
|
dev_err(&ofdev->dev, "couldn't ioremap %pR\n", &res);
|
||||||
(unsigned long long)res.start,
|
|
||||||
(unsigned long long)res.end);
|
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto exit_release_mem;
|
goto exit_release_mem;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче