greybus: audio: Report warning in case module is already removed

Added warning message in find_gb_module(). This will help to identify
invalid mixer control/widget modification triggered from above layer.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Vaibhav Agarwal 2016-06-03 17:45:29 +05:30 committed by Greg Kroah-Hartman
parent 0790c09a3b
commit 02f1c12cca
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ static struct gbaudio_module_info *find_gb_module(
} }
} }
mutex_unlock(&codec->lock); mutex_unlock(&codec->lock);
dev_warn(codec->dev, "%s: module#%d missing in codec list\n", name,
dev_id);
return NULL; return NULL;
} }