]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
extcon: int3496: Switch to devm_acpi_dev_add_driver_gpios()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 10 Jun 2017 19:09:21 +0000 (22:09 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 12 Jun 2017 01:00:24 +0000 (10:00 +0900)
commit1f4be24786b8521945b00e1810576911994ba504
tree470bb5401102d71b03ce81d09c91bf719338ad76
parenta781a7d646ada7a69da4d2a804fe3405f2606b17
extcon: int3496: 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: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-int3496.c