diff options
| author | Vaibhav Agarwal <[email protected]> | 2016-06-30 18:45:35 +0530 |
|---|---|---|
| committer | Alex Elder <[email protected]> | 2016-07-05 21:17:54 -0500 |
| commit | bb296b48038010dee1c55aa24264f3205ec949fd (patch) | |
| tree | 67ffffca5bf4a0ef8a69938f5e20401d40fb1c09 | |
| parent | 0c15a9e0f3f7174718351fcb1c16be944f3b8a57 (diff) | |
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: Vaibhav Agarwal <[email protected]>
Reviewed-by: Mark Greer <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
| -rw-r--r-- | drivers/staging/greybus/audio_topology.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/audio_topology.c b/drivers/staging/greybus/audio_topology.c index 1bc987449180..92f2ada60be8 100644 --- a/drivers/staging/greybus/audio_topology.c +++ b/drivers/staging/greybus/audio_topology.c @@ -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; } |