]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
uio: uio_fsl_elbc_gpcm: use device-managed allocators
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 19 Nov 2020 15:49:02 +0000 (17:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:59:00 +0000 (19:59 +0100)
commitd57801c45f53e3da999e2a0beb932717fe335c41
treef5239bccdeb6a0df8fde44672e95951d0b56d2a3
parent16d546c42db5d9ea91e4d9d3bde5e80eb0cf6bf8
uio: uio_fsl_elbc_gpcm: use device-managed allocators

This change moves all the simple allocations to use device-managed
allocator functions. This way their life-time is tied to the
platform_device object, so when this gets free'd these allocations also get
cleaned up.
The final effect is that error & exit paths get cleaned up a bit.

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