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>
This commit is contained in:
Johan Hovold 2015-12-07 15:05:41 +01:00 committed by Greg Kroah-Hartman
parent 1db1b24304
commit a234792d71
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id,
* the interface bundle list locked here. * the interface bundle list locked here.
*/ */
if (gb_bundle_find(intf, bundle_id)) { 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; return NULL;
} }