2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00

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

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.
*/
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;
}