diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2020-01-31 10:38:58 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-02-03 05:19:20 +0100 |
commit | bad83565eafe8a00922ad4eed6920625a10a2126 (patch) | |
tree | 0bb78155e54d75a298efd6d8641d27b1b33d71a3 /Documentation/driver-api | |
parent | dmaengine: fix null ptr check for __dma_async_device_channel_register() (diff) | |
download | linux-bad83565eafe8a00922ad4eed6920625a10a2126.tar.xz linux-bad83565eafe8a00922ad4eed6920625a10a2126.zip |
dmaengine: Cleanups for the slave <-> channel symlink support
No need to use goto to jump over the
return chan ? chan : ERR_PTR(-EPROBE_DEFER);
We can just revert the check and return right there.
Do not fail the channel request if the chan->name allocation fails, but
print a warning about it.
Change the dev_err to dev_warn if sysfs_create_link() fails as it is not
fatal.
Only attempt to remove the DMA_SLAVE_NAME symlink if it is created - or it
was attempted to be created.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200131093859.3311-2-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/driver-api')
0 files changed, 0 insertions, 0 deletions