OSDN Git Service

mtd: maps: physmap: Use dev_notice() and a %pR specifier
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 19 Oct 2018 07:48:57 +0000 (09:48 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 5 Nov 2018 21:23:49 +0000 (22:23 +0100)
Replace printk(KERN_NOTICE) by dev_notice() use the %pR specifier to
print the iomem resource.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mtd/maps/physmap.c

index a097f0c..b98072a 100644 (file)
@@ -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),