aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-10-03 05:46:23 -0400
committerVinod Koul <vinod.koul@intel.com>2013-10-31 10:24:10 -0400
commit600d525869c45a6b3ce1fa5e58281376c5a2dab2 (patch)
treeb5ea21cab5c9a2987536b5f3d058e66dc5d1afa4 /drivers/dma
parentac806a1c880d07753e54fb80aa3a70365a58652d (diff)
dma: pl330: Remove unnecessary amba_set_drvdata()
Driver core clears the driver data to NULL after device_release or on probe failure, so just remove it from here. Driver core change: "device-core: Ensure drvdata = NULL when no driver is bound" (sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d) Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pl330.c3
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;
3038probe_err3: 3038probe_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,