Commit b15d0b52 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Jason Cooper

bus: mvebu-mbus: Use pr_fmt

In order to clean message printing, we replace pr_info with pr_fmt.
This is purely cosmetic change, with the sole purpose of making
the code a bit more readable.
Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent c589f9b4
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
* configuration (file 'devices'). * configuration (file 'devices').
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -762,7 +764,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, ...@@ -762,7 +764,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base,
break; break;
if (!s->soc->map[i].name) { if (!s->soc->map[i].name) {
pr_err("mvebu-mbus: unknown device '%s'\n", devname); pr_err("unknown device '%s'\n", devname);
return -ENODEV; return -ENODEV;
} }
...@@ -775,7 +777,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, ...@@ -775,7 +777,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base,
attr |= 0x28; attr |= 0x28;
if (!mvebu_mbus_window_conflicts(s, base, size, target, attr)) { if (!mvebu_mbus_window_conflicts(s, base, size, target, attr)) {
pr_err("mvebu-mbus: cannot add window '%s', conflicts with another window\n", pr_err("cannot add window '%s', conflicts with another window\n",
devname); devname);
return -EINVAL; return -EINVAL;
} }
...@@ -842,7 +844,7 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base, ...@@ -842,7 +844,7 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base,
break; break;
if (!of_id->compatible) { if (!of_id->compatible) {
pr_err("mvebu-mbus: could not find a matching SoC family\n"); pr_err("could not find a matching SoC family\n");
return -ENODEV; return -ENODEV;
} }
......
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