uio: uio_dmem_genirq: convert simple allocations to device-managed
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 20 Nov 2020 07:56:24 +0000 (09:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:58:22 +0000 (19:58 +0100)
commit44dccc4a2bd10abfacd25b7d125fb5c3abbb263d
tree2eb415ab4b1c8f6db0b66ad96cb8701c8c50f22e
parent4849e0eda387931fe251fe956cbfddeee852dacf
uio: uio_dmem_genirq: convert simple allocations to device-managed

This change converts the simple allocations in the driver to used
device-managed allocation functions.
This removes the error path entirely in the probe function, and reduces
some code in the remove function.

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