greybus: bundle: use dev_err for bundle-creation errors
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 7 Dec 2015 14:05:41 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 8 Dec 2015 20:56:38 +0000 (15:56 -0500)
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>
drivers/staging/greybus/bundle.c

index c2dbd24a80d5b4fe454ab41ea6ec18e83d9d882a..5d058a947413d24a7ffa0f0db606f0118ff91460 100644 (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;
        }