diff options
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r-- | drivers/dma/pl330.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 96de393aaf4f..75328f9870d2 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -3036,8 +3036,6 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) | |||
3036 | 3036 | ||
3037 | return 0; | 3037 | return 0; |
3038 | probe_err3: | 3038 | probe_err3: |
3039 | amba_set_drvdata(adev, NULL); | ||
3040 | |||
3041 | /* Idle the DMAC */ | 3039 | /* Idle the DMAC */ |
3042 | list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels, | 3040 | list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels, |
3043 | chan.device_node) { | 3041 | chan.device_node) { |
@@ -3068,7 +3066,6 @@ static int pl330_remove(struct amba_device *adev) | |||
3068 | of_dma_controller_free(adev->dev.of_node); | 3066 | of_dma_controller_free(adev->dev.of_node); |
3069 | 3067 | ||
3070 | dma_async_device_unregister(&pdmac->ddma); | 3068 | dma_async_device_unregister(&pdmac->ddma); |
3071 | amba_set_drvdata(adev, NULL); | ||
3072 | 3069 | ||
3073 | /* Idle the DMAC */ | 3070 | /* Idle the DMAC */ |
3074 | list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels, | 3071 | list_for_each_entry_safe(pch, _p, &pdmac->ddma.channels, |