nfc: fdp: Move i2c client irq checking
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 23 Dec 2015 22:45:22 +0000 (23:45 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 29 Dec 2015 18:06:21 +0000 (19:06 +0100)
commit0b0a264df5d3854c3e6411c28616d2148c897bad
treee5dd1468c97c87c39455c7754096261bb328ac0a
parent397d6497bdf787b1a31e40322d6114a68c6a0455
nfc: fdp: Move i2c client irq checking

It is cleaner to check if the i2c_client irq is not configured
properly before allocating any data.

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