Skip to content
Commit 4524667b authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Johannes Berg
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6dad28ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment