summaryrefslogtreecommitdiff
path: root/drivers/extcon
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-palmas.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index a95696b58415..ee6f716e3a20 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -99,7 +99,6 @@ static int palmas_usb_id_state_update(struct palmas_usb *palmas_usb)
int new_state;
int new_cable_index;
int retry = 5;
- unsigned int line_state;
src_again:
ret = palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE,
@@ -147,27 +146,6 @@ src_again:
new_cable_index = 0;
}
- ret = palmas_read(palmas_usb->palmas, PALMAS_INTERRUPT_BASE,
- PALMAS_INT3_LINE_STATE, &line_state);
- if (ret < 0) {
- dev_err(palmas_usb->dev,
- "INT3_LINE_STATE read failed: %d\n", ret);
- return ret;
- }
-
- /* Reconfirm the state by Line State */
- if (line_state & PALMAS_INT3_LINE_STATE_ID) {
- if (new_state == PALMAS_USB_STATE_ID_FLOAT) {
- new_state = PALMAS_USB_STATE_ID_GND;
- new_cable_index = 1;
- }
- } else {
- if (new_state != PALMAS_USB_STATE_ID_FLOAT) {
- new_state = PALMAS_USB_STATE_ID_FLOAT;
- new_cable_index = 0;
- }
- }
-
if (palmas_usb->id_linkstat == new_state) {
dev_info(palmas_usb->dev,
"No change in ID state: Old %d and New %d\n",