From: Boris Brezillon Date: Fri, 19 Oct 2018 07:48:57 +0000 (+0200) Subject: mtd: maps: physmap: Use dev_notice() and a %pR specifier X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~5717^2~31 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=16f2101b4ddb34e4524623425a19cb7bbf7ced9c;p=linux.git mtd: maps: physmap: Use dev_notice() and a %pR specifier Replace printk(KERN_NOTICE) by dev_notice() use the %pR specifier to print the iomem resource. Signed-off-by: Boris Brezillon Reviewed-by: Ricardo Ribalda Delgado Acked-by: Linus Walleij --- diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index a097f0cf519a..b98072a67d74 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c @@ -129,9 +129,8 @@ static int physmap_flash_probe(struct platform_device *dev) if (!res) break; - printk(KERN_NOTICE "physmap platform flash device: %.8llx at %.8llx\n", - (unsigned long long)resource_size(res), - (unsigned long long)res->start); + dev_notice(&dev->dev, "physmap platform flash device: %pR\n", + res); if (!devm_request_mem_region(&dev->dev, res->start, resource_size(res),