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)
commit5300ebb695fa0672589ab191062392f686fca75d
tree9051d247bdccd5d1a69d064901b0996298543475
parent36fb7218e87833b17e3042e77f3b102c75129e8f
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