uio: uio_dmem_genirq: finalize conversion of probe to devm_ handlers
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 20 Nov 2020 07:56:25 +0000 (09:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:58:22 +0000 (19:58 +0100)
commitba022851f3b161040e79cc61c2bd760917490016
treec98c5529e35dcbd63fa2d386cce9eaea62269b85
parent44dccc4a2bd10abfacd25b7d125fb5c3abbb263d
uio: uio_dmem_genirq: finalize conversion of probe to devm_ handlers

This moves move pm_runtime_disable on a devm_add_action_or_reset() handler.
And with the use of the devm_uio_register_device() function, the remove
hook is no longer required.

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