extcon: arizona: Fix race with microphone detection and removal
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 14 Nov 2013 16:18:23 +0000 (16:18 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 7 Jan 2014 02:54:28 +0000 (11:54 +0900)
commit31a847e6e1ed4db5002a4af191988aa85008c407
treeb8e21584379518dccec958077678434869a12d9e
parenta3e00d4bd8011f2fe5100e1a0d3a01cc2afaa187
extcon: arizona: Fix race with microphone detection and removal

The microphone detection code is run as delayed work to provide
additional debounce, it is possible that the jack could have been
removed by the time we process the microphone detection. Turn this
case into a no op.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c