Skip to content

Commit 36c6df5

Browse files
Jingoo HanVinod Koul
authored andcommitted
dma: at_hdmac: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d06 (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 3208b37 commit 36c6df5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/dma/at_hdmac.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,6 @@ static int __init at_dma_probe(struct platform_device *pdev)
15701570
dma_async_device_unregister(&atdma->dma_common);
15711571
dma_pool_destroy(atdma->dma_desc_pool);
15721572
err_pool_create:
1573-
platform_set_drvdata(pdev, NULL);
15741573
free_irq(platform_get_irq(pdev, 0), atdma);
15751574
err_irq:
15761575
clk_disable(atdma->clk);
@@ -1595,7 +1594,6 @@ static int at_dma_remove(struct platform_device *pdev)
15951594
dma_async_device_unregister(&atdma->dma_common);
15961595

15971596
dma_pool_destroy(atdma->dma_desc_pool);
1598-
platform_set_drvdata(pdev, NULL);
15991597
free_irq(platform_get_irq(pdev, 0), atdma);
16001598

16011599
list_for_each_entry_safe(chan, _chan, &atdma->dma_common.channels,

0 commit comments

Comments
 (0)