Commit bad8356
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>1 parent 5429b51 commit bad8356
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
| 759 | + | |
| 760 | + | |
763 | 761 | | |
764 | 762 | | |
765 | | - | |
766 | 763 | | |
767 | 764 | | |
768 | | - | |
| 765 | + | |
| 766 | + | |
769 | 767 | | |
770 | 768 | | |
771 | 769 | | |
772 | | - | |
| 770 | + | |
773 | 771 | | |
774 | | - | |
| 772 | + | |
| 773 | + | |
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
| |||
830 | 829 | | |
831 | 830 | | |
832 | 831 | | |
| 832 | + | |
833 | 833 | | |
| 834 | + | |
834 | 835 | | |
835 | 836 | | |
836 | 837 | | |
837 | 838 | | |
838 | 839 | | |
839 | | - | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| |||
0 commit comments