gpiolib: acpi: shrink devm_acpi_dev_add_driver_gpios()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 10 Nov 2021 13:47:43 +0000 (15:47 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Nov 2021 11:31:44 +0000 (13:31 +0200)
commit2ff64a84bbb3ea0281899766d9a944fd18db7013
treea44b8341371fb048465d59d51bde902074762e38
parent507805b83ff108473dba9d4909e41abd50cf07f5
gpiolib: acpi: shrink devm_acpi_dev_add_driver_gpios()

If all we want to manage is a single pointer, there's no need to
manually allocate and add a new devres. We can simply use
devm_add_action_or_reset() and shrink the code by a good bit.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/gpio/gpiolib-acpi.c