Skip to content

Commit 3b7b0bb

Browse files
jhovoldvinodkoul
authored andcommitted
dmaengine: mmp_tdma: drop unnecessary OF node check in remove
The driver does not support anything but OF probe since commit 3b0f4a5 ("dma:mmp_tdma: get sram pool through device tree"). Commit a67ba97 ("dmaengine: Use device_get_match_data()") later removed most remnants of platform probing except for an unnecessary OF node check in remove(). Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20251120114524.8431-8-johan@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 73391fe commit 3b7b0bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/dma/mmp_tdma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,7 @@ static void mmp_tdma_issue_pending(struct dma_chan *chan)
554554

555555
static void mmp_tdma_remove(struct platform_device *pdev)
556556
{
557-
if (pdev->dev.of_node)
558-
of_dma_controller_free(pdev->dev.of_node);
557+
of_dma_controller_free(pdev->dev.of_node);
559558
}
560559

561560
static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev,

0 commit comments

Comments
 (0)