diff options
author | Rob Herring <robh@kernel.org> | 2016-06-15 08:32:18 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-07-18 16:57:42 -0500 |
commit | 606ad42aa3b1fe8bb122305bef5aea79a6cef54b (patch) | |
tree | f744cc2b9cfb4f560a08ab5c99059a414dda0b37 /drivers/of/platform.c | |
parent | 15cc2ed6dcf91a8658e084be4e140147161819d7 (diff) | |
download | op-kernel-dev-606ad42aa3b1fe8bb122305bef5aea79a6cef54b.zip op-kernel-dev-606ad42aa3b1fe8bb122305bef5aea79a6cef54b.tar.gz |
of: use pr_fmt prefix for all console printing
Clean-up all the DT printk functions to use common pr_fmt prefix.
Some print statements such as kmalloc errors were redundant, so just
drop those.
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Reviewed-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r-- | drivers/of/platform.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 153dbe1..765390e 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -11,6 +11,9 @@ * 2 of the License, or (at your option) any later version. * */ + +#define pr_fmt(fmt) "OF: " fmt + #include <linux/errno.h> #include <linux/module.h> #include <linux/amba/bus.h> @@ -233,11 +236,8 @@ static struct amba_device *of_amba_device_create(struct device_node *node, return NULL; dev = amba_device_alloc(NULL, 0, 0); - if (!dev) { - pr_err("%s(): amba_device_alloc() failed for %s\n", - __func__, node->full_name); + if (!dev) goto err_clear_flag; - } /* setup generic device info */ dev->dev.of_node = of_node_get(node); @@ -260,15 +260,15 @@ static struct amba_device *of_amba_device_create(struct device_node *node, ret = of_address_to_resource(node, 0, &dev->res); if (ret) { - pr_err("%s(): of_address_to_resource() failed (%d) for %s\n", - __func__, ret, node->full_name); + pr_err("amba: of_address_to_resource() failed (%d) for %s\n", + ret, node->full_name); goto err_free; } ret = amba_device_add(dev, &iomem_resource); if (ret) { - pr_err("%s(): amba_device_add() failed (%d) for %s\n", - __func__, ret, node->full_name); + pr_err("amba_device_add() failed (%d) for %s\n", + ret, node->full_name); goto err_free; } |