mirror of https://gitee.com/openkylin/linux.git
mfd: 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: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
f71e1afdd5
commit
3f3d4310bd
|
@ -745,11 +745,8 @@ static int sm501_register_device(struct sm501_devdata *sm,
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
for (ptr = 0; ptr < pdev->num_resources; ptr++) {
|
for (ptr = 0; ptr < pdev->num_resources; ptr++) {
|
||||||
printk(KERN_DEBUG "%s[%d] flags %08lx: %08llx..%08llx\n",
|
printk(KERN_DEBUG "%s[%d] %pR\n",
|
||||||
pdev->name, ptr,
|
pdev->name, ptr, &pdev->resource[ptr]);
|
||||||
pdev->resource[ptr].flags,
|
|
||||||
(unsigned long long)pdev->resource[ptr].start,
|
|
||||||
(unsigned long long)pdev->resource[ptr].end);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = platform_device_register(pdev);
|
ret = platform_device_register(pdev);
|
||||||
|
|
Loading…
Reference in New Issue