ASoC: msm: Update APQ machine driver to check for MPQ target
A check for cpu type is apq will return true even for MPQ target
update the check to verify if the MPQ target is present then
exit without proceeding further.
Change-Id: I6123e836544b1c3ed1b8a4b18a2ccfa2f6bcddc0
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
diff --git a/sound/soc/msm/apq8064.c b/sound/soc/msm/apq8064.c
index 9d61a7c..26e4263 100644
--- a/sound/soc/msm/apq8064.c
+++ b/sound/soc/msm/apq8064.c
@@ -1439,7 +1439,7 @@
{
int ret;
- if (!cpu_is_apq8064()) {
+ if (!cpu_is_apq8064() || (socinfo_get_id() == 130)) {
pr_err("%s: Not the right machine type\n", __func__);
return -ENODEV;
}
@@ -1478,7 +1478,7 @@
static void __exit msm_audio_exit(void)
{
- if (!cpu_is_apq8064()) {
+ if (!cpu_is_apq8064() || (socinfo_get_id() == 130)) {
pr_err("%s: Not the right machine type\n", __func__);
return ;
}