NFC: trf7970a: Only check 'en2-rf-quirk' if EN2 is specified
authorMark Greer <mgreer@animalcreek.com>
Tue, 25 Apr 2017 22:43:51 +0000 (15:43 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 18 Jun 2017 21:57:58 +0000 (23:57 +0200)
commitafcb9fbdba71cd39daefaff1e288472565df6af2
tree0585ae4e5533a8bbbc0133279219a2e7594f1d30
parent69f984f037a869477cac654a834e8b5435bb35b6
NFC: trf7970a: Only check 'en2-rf-quirk' if EN2 is specified

The quirk indicated by the 'en2-rf-quirk' device tree property
is only relevant when there is a GPIO connected to the EN2 pin
of the trf7970a. This means we should only check for 'en2-rf-quirk'
when EN2 is specified in the 'ti,enable-gpios' property of the
device tree.

Signed-off-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c