From: Johan Hovold Date: Mon, 7 Dec 2015 14:05:41 +0000 (+0100) Subject: greybus: bundle: use dev_err for bundle-creation errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a234792d715345ebcd684196b05ef0f7454a64cb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index c2dbd24a80d5..5d058a947413 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; }