From 830a0a0aba917a858ac3d9281f98c82a1bee6bf4 Mon Sep 17 00:00:00 2001 From: Devin Kim Date: Thu, 20 Sep 2012 19:10:13 -0700 Subject: [PATCH] switch: fsa8008: do not enable uart console earjack debugger driver can enable the uart console. so fsa8008 doesn't need to enable the uart console. It will remove the noise. Change-Id: I6a3880f40717329034631d4488dd7b376fff8ef6 --- drivers/switch/hds_fsa8008.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/switch/hds_fsa8008.c b/drivers/switch/hds_fsa8008.c index 597d3cf4e37d..02556b876cfc 100644 --- a/drivers/switch/hds_fsa8008.c +++ b/drivers/switch/hds_fsa8008.c @@ -262,8 +262,6 @@ static void remove_headset(struct hsd_info *hi) if (has_mic == HEADSET_WITH_MIC) input_report_switch(hi->input, SW_MICROPHONE_INSERT, 0); input_sync(hi->input); - if (hi->set_uart_console) - hi->set_uart_console(1); } static void detect_work(struct work_struct *work) @@ -279,8 +277,6 @@ static void detect_work(struct work_struct *work) if (switch_get_state(&hi->sdev) != NO_DEVICE) { remove_headset(hi); } else { - if (hi->set_uart_console) - hi->set_uart_console(1); HSD_DBG("err_invalid_state state = %d\n", state); } } else {