NFC: st-nci: Disable irq when powering the device up
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 25 Oct 2015 21:54:48 +0000 (22:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 27 Oct 2015 02:55:14 +0000 (03:55 +0100)
commitbb2496c3ecae8a4a24c86b3c67de192f30fa1385
tree217ba10637576cb6657cf7a79cae3f9dc291263c
parenta9e062d0599f499082320006ae3b54cf391bf996
NFC: st-nci: Disable irq when powering the device up

Upon some conditions (timing, CLF errors, platform errors...), the
irq might be already active when powering the device.

Add irq_active variable as a guard to avoid kernel warning message

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st-nci/i2c.c
drivers/nfc/st-nci/spi.c