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:
Joe Perches 2010-11-12 13:37:56 -08:00 committed by Samuel Ortiz
parent f71e1afdd5
commit 3f3d4310bd
1 changed files with 2 additions and 5 deletions

View File

@ -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);