Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: mmp_tdma: drop unnecessary OF node check in remove

The driver does not support anything but OF probe since commit
3b0f4a54f247 ("dma:mmp_tdma: get sram pool through device tree").

Commit a67ba97dfb30 ("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>

authored by

Johan Hovold and committed by
Vinod Koul
3b7b0bbd 73391fec

+1 -2
+1 -2
drivers/dma/mmp_tdma.c
··· 554 554 555 555 static void mmp_tdma_remove(struct platform_device *pdev) 556 556 { 557 - if (pdev->dev.of_node) 558 - of_dma_controller_free(pdev->dev.of_node); 557 + of_dma_controller_free(pdev->dev.of_node); 559 558 } 560 559 561 560 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev,