Commit bb296b48 authored by Vaibhav Agarwal's avatar Vaibhav Agarwal Committed by Alex Elder

greybus: added warning message in case of missing widget

Additional warning message added to notify in case above layer tries to
access widget that is already removed from the list.
Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: default avatarMark Greer <mark.greer@animalcreek.com>
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
parent 0c15a9e0
......@@ -99,6 +99,8 @@ static int gbaudio_map_widgetname(struct gbaudio_module_info *module,
if (!strncmp(widget->name, name, NAME_SIZE))
return widget->id;
}
dev_warn(module->dev, "%s: missing in modules widgets list\n", name);
return -EINVAL;
}
......
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