]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: exar: use devm action for freeing the IDA and drop remove()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 20 Oct 2020 07:24:04 +0000 (09:24 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 25 Nov 2020 14:36:52 +0000 (15:36 +0100)
commite7192b9421307fe3541fab6570f09dd86f22acad
tree9051d247bdccd5d1a69d064901b0996298543475
parent8357f0628ee31a961870f5104bf796685c58f684
gpio: exar: use devm action for freeing the IDA and drop remove()

We can simplify the error path in probe() and drop remove() entirely if
we provide a devm action for freeing the device ID.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-exar.c