gpio: acpi: Add managed variant of acpi_dev_add_driver_gpios()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Mar 2017 13:48:05 +0000 (15:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Mar 2017 10:16:29 +0000 (11:16 +0100)
commit85c73d50e57eb8ad43955fe38714bc5fba1acd92
tree7225a49289314e3ee30ccf22bf9c073ce3bcd896
parentff21378a321f05e8c11265a3bd7622b89df8032e
gpio: acpi: Add managed variant of acpi_dev_add_driver_gpios()

Introduce device managed variant of acpi_dev_add_driver_gpios() and its
counterpart acpi_dev_remove_driver_gpios().

The functions in most cases are used in driver's ->probe() and
->remove() callbacks, that's why it's useful to have managed variant of
them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c
include/linux/acpi.h