From: zhangjiaquan Date: Thu, 17 Jan 2019 07:55:03 +0000 (-0500) Subject: EKKANE-227:[Kane][audio][factory]kernel:hp and ep switch make no sound X-Git-Tag: MMI-QSAS30.62-33-3~279 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21b1abe47a9f8d7f9d3548ff9cb99b22fbf2e910;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git EKKANE-227:[Kane][audio][factory]kernel:hp and ep switch make no sound 1,hp and ep switch make no sound Change-Id: I52454c4488a0dc6e628ae633d9b026a28fde78f4 Signed-off-by: zhangjiaquan --- diff --git a/drivers/extcon/extcon-madera.c b/drivers/extcon/extcon-madera.c index 863b031fc465..0d4420ac0f9a 100755 --- a/drivers/extcon/extcon-madera.c +++ b/drivers/extcon/extcon-madera.c @@ -769,7 +769,7 @@ static void madera_jds_timeout_work(struct work_struct *work) static void madera_extcon_hp_clamp(struct madera_extcon *info, bool clamp) { struct madera *madera = info->madera; - unsigned int mask, val = 0; + unsigned int mask = 0, val = 0; unsigned int edre_reg = 0, edre_val = 0; unsigned int ep_sel = 0; int ret;