diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-06-07 12:47:38 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-06-08 10:10:19 -0400 |
commit | b15d0b5256056a67c5cb14c2d4d46dd12c8bfb99 (patch) | |
tree | 2e0f8526ce1c2e8b6afbe977b0f5183d59defc0c /drivers/bus | |
parent | c589f9b4b51317cfc530812fe90a9895bd51430e (diff) |
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: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/mvebu-mbus.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 8740f46b4d0d..33c6947eebec 100644 --- a/drivers/bus/mvebu-mbus.c +++ b/drivers/bus/mvebu-mbus.c | |||
@@ -49,6 +49,8 @@ | |||
49 | * configuration (file 'devices'). | 49 | * configuration (file 'devices'). |
50 | */ | 50 | */ |
51 | 51 | ||
52 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
53 | |||
52 | #include <linux/kernel.h> | 54 | #include <linux/kernel.h> |
53 | #include <linux/module.h> | 55 | #include <linux/module.h> |
54 | #include <linux/init.h> | 56 | #include <linux/init.h> |
@@ -762,7 +764,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, | |||
762 | break; | 764 | break; |
763 | 765 | ||
764 | if (!s->soc->map[i].name) { | 766 | if (!s->soc->map[i].name) { |
765 | pr_err("mvebu-mbus: unknown device '%s'\n", devname); | 767 | pr_err("unknown device '%s'\n", devname); |
766 | return -ENODEV; | 768 | return -ENODEV; |
767 | } | 769 | } |
768 | 770 | ||
@@ -775,7 +777,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, | |||
775 | attr |= 0x28; | 777 | attr |= 0x28; |
776 | 778 | ||
777 | if (!mvebu_mbus_window_conflicts(s, base, size, target, attr)) { | 779 | if (!mvebu_mbus_window_conflicts(s, base, size, target, attr)) { |
778 | pr_err("mvebu-mbus: cannot add window '%s', conflicts with another window\n", | 780 | pr_err("cannot add window '%s', conflicts with another window\n", |
779 | devname); | 781 | devname); |
780 | return -EINVAL; | 782 | return -EINVAL; |
781 | } | 783 | } |
@@ -842,7 +844,7 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base, | |||
842 | break; | 844 | break; |
843 | 845 | ||
844 | if (!of_id->compatible) { | 846 | if (!of_id->compatible) { |
845 | pr_err("mvebu-mbus: could not find a matching SoC family\n"); | 847 | pr_err("could not find a matching SoC family\n"); |
846 | return -ENODEV; | 848 | return -ENODEV; |
847 | } | 849 | } |
848 | 850 | ||