diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-02-11 13:52:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-02-11 21:44:17 -0800 |
commit | b427572ebff3abba436a9ae45db73c78fa3ddcf8 (patch) | |
tree | 76bcbb92c3cc9fd9441b2b617cb29b950cd7b1fb /drivers/staging/greybus/hd.c | |
parent | greybus: manifest: add interface-device prefix to messages (diff) | |
download | linux-dev-b427572ebff3abba436a9ae45db73c78fa3ddcf8.tar.xz linux-dev-b427572ebff3abba436a9ae45db73c78fa3ddcf8.zip |
greybus: core: add device prefix to error messages
Use dev_err and dev_warn where appropriate and remove now unused pr_fmt
defines.
Testing Done:
Tested on DB3.5 with the generic bridge firmware on APB2.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/hd.c')
-rw-r--r-- | drivers/staging/greybus/hd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/greybus/hd.c b/drivers/staging/greybus/hd.c index d1aab29d3da4..147a92d14cfc 100644 --- a/drivers/staging/greybus/hd.c +++ b/drivers/staging/greybus/hd.c @@ -7,8 +7,6 @@ * Released under the GPLv2 only. */ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include <linux/kernel.h> #include <linux/slab.h> @@ -55,7 +53,7 @@ struct gb_host_device *gb_hd_create(struct gb_hd_driver *driver, * so that we don't have to every time we make them. */ if ((!driver->message_send) || (!driver->message_cancel)) { - pr_err("Must implement all gb_hd_driver callbacks!\n"); + dev_err(parent, "mandatory hd-callbacks missing\n"); return ERR_PTR(-EINVAL); } |