Commit a234792d authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: bundle: use dev_err for bundle-creation errors

Use dev_err to report duplicate bundle ids when creating a bundle.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1db1b243
...@@ -108,7 +108,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id, ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment