diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-03-16 04:30:09 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-03-18 13:15:36 -0400 |
commit | b07064aa080c3c769ab7698e63bed81e0f29155d (patch) | |
tree | b2b4aaf3f3cf0d9dcb0f78f3ad708eed25fc3c48 | |
parent | c509c495c0aca237cb7e3a38cb1fa90ff3a0bdfa (diff) |
dmaengine: s3c24xx: remove device_alloc_chan_resources handler
Now that device_alloc_chan_resources handler in not mandatory, remove dummy
implementations
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/s3c24xx-dma.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index 110a0cdcc60a..01dcaf21b988 100644 --- a/drivers/dma/s3c24xx-dma.c +++ b/drivers/dma/s3c24xx-dma.c | |||
@@ -749,11 +749,6 @@ unlock: | |||
749 | return ret; | 749 | return ret; |
750 | } | 750 | } |
751 | 751 | ||
752 | static int s3c24xx_dma_alloc_chan_resources(struct dma_chan *chan) | ||
753 | { | ||
754 | return 0; | ||
755 | } | ||
756 | |||
757 | static void s3c24xx_dma_free_chan_resources(struct dma_chan *chan) | 752 | static void s3c24xx_dma_free_chan_resources(struct dma_chan *chan) |
758 | { | 753 | { |
759 | /* Ensure all queued descriptors are freed */ | 754 | /* Ensure all queued descriptors are freed */ |
@@ -1290,8 +1285,6 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) | |||
1290 | dma_cap_set(DMA_MEMCPY, s3cdma->memcpy.cap_mask); | 1285 | dma_cap_set(DMA_MEMCPY, s3cdma->memcpy.cap_mask); |
1291 | dma_cap_set(DMA_PRIVATE, s3cdma->memcpy.cap_mask); | 1286 | dma_cap_set(DMA_PRIVATE, s3cdma->memcpy.cap_mask); |
1292 | s3cdma->memcpy.dev = &pdev->dev; | 1287 | s3cdma->memcpy.dev = &pdev->dev; |
1293 | s3cdma->memcpy.device_alloc_chan_resources = | ||
1294 | s3c24xx_dma_alloc_chan_resources; | ||
1295 | s3cdma->memcpy.device_free_chan_resources = | 1288 | s3cdma->memcpy.device_free_chan_resources = |
1296 | s3c24xx_dma_free_chan_resources; | 1289 | s3c24xx_dma_free_chan_resources; |
1297 | s3cdma->memcpy.device_prep_dma_memcpy = s3c24xx_dma_prep_memcpy; | 1290 | s3cdma->memcpy.device_prep_dma_memcpy = s3c24xx_dma_prep_memcpy; |
@@ -1305,8 +1298,6 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) | |||
1305 | dma_cap_set(DMA_CYCLIC, s3cdma->slave.cap_mask); | 1298 | dma_cap_set(DMA_CYCLIC, s3cdma->slave.cap_mask); |
1306 | dma_cap_set(DMA_PRIVATE, s3cdma->slave.cap_mask); | 1299 | dma_cap_set(DMA_PRIVATE, s3cdma->slave.cap_mask); |
1307 | s3cdma->slave.dev = &pdev->dev; | 1300 | s3cdma->slave.dev = &pdev->dev; |
1308 | s3cdma->slave.device_alloc_chan_resources = | ||
1309 | s3c24xx_dma_alloc_chan_resources; | ||
1310 | s3cdma->slave.device_free_chan_resources = | 1301 | s3cdma->slave.device_free_chan_resources = |
1311 | s3c24xx_dma_free_chan_resources; | 1302 | s3c24xx_dma_free_chan_resources; |
1312 | s3cdma->slave.device_tx_status = s3c24xx_dma_tx_status; | 1303 | s3cdma->slave.device_tx_status = s3c24xx_dma_tx_status; |