NFC: st21nfca: Get rid of code duplication in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Jun 2017 10:08:48 +0000 (13:08 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 22 Jun 2017 21:51:44 +0000 (23:51 +0200)
commitd31748be2ba37b29bc051f1b5ce2f30294db2cc1
treefd0f8eaeccc80badc1c75c06ebc364833a22852b
parent394671e79ee6e9e23ddd673ba5bbae5887f97182
NFC: st21nfca: Get rid of code duplication in ->probe()

Since OF and ACPI case almost the same get rid of code duplication
by moving gpiod_get() calls directly to ->probe().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/i2c.c