OSDN Git Service

gpio: ich: Use devm_gpiochip_add_data() to simplify remove path
authorAndrew Davis <afd@ti.com>
Tue, 7 Mar 2023 16:54:27 +0000 (10:54 -0600)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 9 Mar 2023 14:08:39 +0000 (16:08 +0200)
commit56b16a9a80232fc70bebe31ded52c2f6fd3f7ddf
treeb7181ee0ee4ed2c331011ecce3c4815f9128583e
parent9409d8cf78d9c5471cfd229e652f12050c6dbbde
gpio: ich: Use devm_gpiochip_add_data() to simplify remove path

Use devm version of gpiochip add function to handle removal for us.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-ich.c