diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-11-20 10:42:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 19:58:54 +0100 |
commit | 023c9c6dc2c414f1bef2e9ee649fb2e459f52326 (patch) | |
tree | 656338dcdf585b93be0e3fdb7cfe9827d92b2da7 /drivers/spi/spi-mxs.c | |
parent | ba022851f3b161040e79cc61c2bd760917490016 (diff) |
uio: uio_sercos3: use device-managed functions for simple allocs
This change converts the simple allocations [kzalloc()] to devm_kzalloc()
tying the life-time of these objects to the PCI device object.
It cleans up the error and exit path and bit, and does a minor correction
that -ENOMEM is returned (vs -ENODEV) in case the 'priv' object cannot be
allocated.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201120084207.50736-1-alexandru.ardelean@analog.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
0 files changed, 0 insertions, 0 deletions