Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16f2101b authored by Boris Brezillon's avatar Boris Brezillon
Browse files

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: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c7f6dc60
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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),