Commit 3f3d4310 authored by Joe Perches's avatar Joe Perches Committed by Samuel Ortiz

mfd: Use printf extension %pR for struct resource

Using %pR standardizes the struct resource output.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent f71e1afd
...@@ -745,11 +745,8 @@ static int sm501_register_device(struct sm501_devdata *sm, ...@@ -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);
......
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