greybus: module: suppress activation error message for dummy interfaces

We currently handle dummy interfaces by deactivating them using
activation error paths, but we don't want the corresponding
module_inserted error message to be printed.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Johan Hovold 2016-07-19 15:24:50 +02:00 committed by Greg Kroah-Hartman
parent c80a982fc1
commit 6633d80afb

View File

@ -153,8 +153,11 @@ static void gb_module_register_interface(struct gb_interface *intf)
break;
}
if (ret) {
dev_err(&module->dev, "failed to activate interface %u: %d\n",
intf_id, ret);
if (intf->type != GB_SVC_INTF_TYPE_DUMMY) {
dev_err(&module->dev,
"failed to activate interface %u: %d\n",
intf_id, ret);
}
/*
* -EAGAIN indicates that the Greybus operation