NFC: pn544: Convert to use GPIO descriptor
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 28 Mar 2017 09:36:36 +0000 (12:36 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 5 Apr 2017 08:04:12 +0000 (10:04 +0200)
commite2c518c6c9987bf832bb1475de38911da96bd3db
treed45cb7272e0278c1a4bb42dbd76489ba78574d14
parente7f6ccaab127147c52ac4b624c54ad0059bd08e9
NFC: pn544: Convert to use GPIO descriptor

Since we got rid of platform data, the driver may use
GPIO descriptor directly.

This change fixes a potential issue of double freeing GPIOs in ACPI
case by converting to devm_gpiod_get().

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