msm: audio: qdsp6v2: Fix warning prints at gpio call.
-Warning prints are seen during monkey run at gpio_set_value.
-Use gpio_set_value_cansleep instead of gpio_set_value to
resolve warnings.
Change-Id: Icdc7ad5610d69b0b030355f1c7b140672eecf3fc
CRs-Fixed: 325146
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
diff --git a/arch/arm/mach-msm/qdsp6v2/board-msm8x60-audio.c b/arch/arm/mach-msm/qdsp6v2/board-msm8x60-audio.c
index 11687ac..51a209d 100644
--- a/arch/arm/mach-msm/qdsp6v2/board-msm8x60-audio.c
+++ b/arch/arm/mach-msm/qdsp6v2/board-msm8x60-audio.c
@@ -315,10 +315,10 @@
}
gpio_direction_output(SNDDEV_GPIO_CLASS_D1_EN, 1);
- gpio_set_value(SNDDEV_GPIO_CLASS_D1_EN, 1);
+ gpio_set_value_cansleep(SNDDEV_GPIO_CLASS_D1_EN, 1);
} else {
- gpio_set_value(SNDDEV_GPIO_CLASS_D1_EN, 0);
+ gpio_set_value_cansleep(SNDDEV_GPIO_CLASS_D1_EN, 0);
gpio_free(SNDDEV_GPIO_CLASS_D1_EN);
}
return 0;