WSL2-Linux-Kernel/drivers/uio
Alexandru Ardelean 74e71964b1 uio: uio_hv_generic: use devm_kzalloc() for private data alloc
This is a minor cleanup for the management of the private object of this
driver. The allocation can be tied to the life-time of the hv_device
object.
This cleans up a bit the exit & error paths, since the object doesn't need
to be explicitly free'd anymore.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201119154903.82099-4-alexandru.ardelean@analog.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-09 19:59:00 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uio.c Merge 5.10-rc4 into char-misc-next 2020-11-16 09:18:46 +01:00
uio_aec.c uio: uio_aec: use devm_kzalloc() for uio_info object 2020-12-09 19:59:00 +01:00
uio_cif.c uio: uio_cif: use devm_kzalloc() for uio_info object 2020-12-09 19:59:00 +01:00
uio_dmem_genirq.c uio: uio_dmem_genirq: finalize conversion of probe to devm_ handlers 2020-12-09 19:58:22 +01:00
uio_fsl_elbc_gpcm.c uio: uio_fsl_elbc_gpcm: use device-managed allocators 2020-12-09 19:59:00 +01:00
uio_hv_generic.c uio: uio_hv_generic: use devm_kzalloc() for private data alloc 2020-12-09 19:59:00 +01:00
uio_mf624.c uio: uio_mf624: use devm_kzalloc() for uio_info object 2020-12-09 19:58:54 +01:00
uio_netx.c uio: uio_netx: use devm_kzalloc() for or uio_info object 2020-12-09 19:58:54 +01:00
uio_pci_generic.c uio/uio_pci_generic: remove unneeded pci_set_drvdata() 2020-12-09 19:57:20 +01:00
uio_pdrv_genirq.c Merge branch 'char-misc-linus' into 'char-misc-next' 2020-07-10 13:42:33 +02:00
uio_pruss.c uio: pruss: use devm_clk_get() for clk init 2020-12-09 19:57:03 +01:00
uio_sercos3.c uio: uio_sercos3: use device-managed functions for simple allocs 2020-12-09 19:58:54 +01:00