uio: uio_pdrv_genirq: use new devm_uio_register_device() function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 6 Mar 2020 16:18:53 +0000 (18:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 11:34:10 +0000 (12:34 +0100)
commiteff1dd87fae2448f02f368ac6ed6215ea1d447ac
treed963655aa11bf07dc15fac6b7f092ec1534a16dd
parent86a78b1cfc78a6378c4ff3b30f822899c066dca5
uio: uio_pdrv_genirq: use new devm_uio_register_device() function

This change makes use of the new devm_uio_register_device() initializer.
This cleans up the exit path quite nicely, and removes the remove function
of the driver.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200306161853.25368-2-alexandru.ardelean@analog.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pdrv_genirq.c