extcon: adc-jack: update cable state during boot

Update cable state during boot to avoid any missing
external cable events occurred before driver initialisation.

Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
Venkat Reddy Talla 2016-07-05 19:26:21 +05:30 committed by Kishon Vijay Abraham I
parent 017300da3a
commit 44d6106808

View File

@ -158,6 +158,7 @@ static int adc_jack_probe(struct platform_device *pdev)
if (data->wakeup_source) if (data->wakeup_source)
device_init_wakeup(&pdev->dev, 1); device_init_wakeup(&pdev->dev, 1);
adc_jack_handler(&data->handler.work);
return 0; return 0;
} }