soc: codecs: max98090: fix interrupt registration
authorShreshtha Sahu <ssahu@nvidia.com>
Mon, 21 Apr 2014 11:50:38 +0000 (16:50 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Sat, 10 May 2014 00:58:10 +0000 (17:58 -0700)
commit673c1cd274c91b21a16935682b50e5be3524a557
tree00a7fcadad0a005cc919655fa9b7af2f463fa23d
parentec5ca0e56e4bc69e48b88f8716a7e9f7f7e1e147
soc: codecs: max98090: fix interrupt registration

This patch clears previous interrupt and installs interrupt
handler at the end of device probe. Also it enables jack
detection only after handler is installed. This prevents,
false/stale interrupt generation and hence device access
by interrupt handler even before device probe has completed.

Bug 1464724

Change-Id: Id3c37ef4800e35cfec540bb1584c9b1cc7f7172f
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/405899
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
sound/soc/codecs/max98090.c