soc: codecs: max98090: Support K3.10
Johnny Qiu [Wed, 27 Nov 2013 12:25:21 +0000 (12:25 +0000)]
Bug 1405054
Bug 1408474

Change-Id: If8479faa5d4389833fd850c258c1eb1e29819df9
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/345832
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Tested-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/362913
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Vikram Fugro <vfugro@nvidia.com>
GVS: Gerrit_Virtual_Submit

sound/soc/codecs/max98090.c

index 1f848c6..e40d678 100644 (file)
 
 #include <linux/version.h>
 
+#ifndef __devexit
+#define __devexit
+#endif
+#ifndef __devexit_p
+#define __devexit_p(x) (x)
+#endif
+
 #define DEBUG
 #define EXTMIC_METHOD
 #define EXTMIC_METHOD_TEST
@@ -3713,7 +3720,7 @@ static int max98090_probe(struct snd_soc_codec *codec)
 
        /* Register for interrupts */
        if ((request_threaded_irq(pdata->irq, NULL,
-               max98090_interrupt, IRQF_TRIGGER_FALLING,
+               max98090_interrupt, IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
                "max98090_interrupt", codec)) < 0) {
                dev_info(codec->dev, "request_irq failed\n");
        }