diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-12-07 15:05:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-08 15:56:38 -0500 |
commit | a234792d715345ebcd684196b05ef0f7454a64cb (patch) | |
tree | ea17f9f55953f8896896487486e03401a37fe67b /drivers/staging/greybus/bundle.c | |
parent | 1db1b24304a064b9b4213ba1812450ac054c2c58 (diff) | |
download | op-kernel-dev-a234792d715345ebcd684196b05ef0f7454a64cb.zip op-kernel-dev-a234792d715345ebcd684196b05ef0f7454a64cb.tar.gz |
greybus: bundle: use dev_err for bundle-creation errors
Use dev_err to report duplicate bundle ids when creating a bundle.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.c')
-rw-r--r-- | drivers/staging/greybus/bundle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index c2dbd24..5d058a9 100644 --- a/drivers/staging/greybus/bundle.c +++ b/drivers/staging/greybus/bundle.c @@ -108,7 +108,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id, * the interface bundle list locked here. */ if (gb_bundle_find(intf, bundle_id)) { - pr_err("duplicate bundle id %u\n", bundle_id); + dev_err(&intf->dev, "duplicate bundle id %u\n", bundle_id); return NULL; } |