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

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: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c80a982f
...@@ -153,8 +153,11 @@ static void gb_module_register_interface(struct gb_interface *intf) ...@@ -153,8 +153,11 @@ static void gb_module_register_interface(struct gb_interface *intf)
break; break;
} }
if (ret) { if (ret) {
dev_err(&module->dev, "failed to activate interface %u: %d\n", if (intf->type != GB_SVC_INTF_TYPE_DUMMY) {
intf_id, ret); dev_err(&module->dev,
"failed to activate interface %u: %d\n",
intf_id, ret);
}
/* /*
* -EAGAIN indicates that the Greybus operation * -EAGAIN indicates that the Greybus operation
......
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