net: rfkill: gpio: Switch to devm_acpi_dev_add_driver_gpios()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 10 Jun 2017 19:10:34 +0000 (22:10 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Jun 2017 09:07:51 +0000 (11:07 +0200)
commit4524667b1e6801a92a4de066788e558b71fe323a
tree22b48d7c298fec668aef523400dbb62ecd04b3c1
parent6dad28ae197037d8c027f214046c2bbf159bc075
net: rfkill: gpio: Switch to devm_acpi_dev_add_driver_gpios()

Switch to use managed variant of acpi_dev_add_driver_gpios() to simplify
error path and fix potentially wrong assingment if ->probe() fails.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/rfkill-gpio.c