diff options
Diffstat (limited to 'drivers/dma/s3c24xx-dma.c')
-rw-r--r-- | drivers/dma/s3c24xx-dma.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index 2f91da3db836..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 */ |
@@ -1238,7 +1233,7 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) | |||
1238 | if (!s3cdma->phy_chans) | 1233 | if (!s3cdma->phy_chans) |
1239 | return -ENOMEM; | 1234 | return -ENOMEM; |
1240 | 1235 | ||
1241 | /* aquire irqs and clocks for all physical channels */ | 1236 | /* acquire irqs and clocks for all physical channels */ |
1242 | for (i = 0; i < pdata->num_phy_channels; i++) { | 1237 | for (i = 0; i < pdata->num_phy_channels; i++) { |
1243 | struct s3c24xx_dma_phy *phy = &s3cdma->phy_chans[i]; | 1238 | struct s3c24xx_dma_phy *phy = &s3cdma->phy_chans[i]; |
1244 | char clk_name[6]; | 1239 | char clk_name[6]; |
@@ -1266,7 +1261,7 @@ static int s3c24xx_dma_probe(struct platform_device *pdev) | |||
1266 | sprintf(clk_name, "dma.%d", i); | 1261 | sprintf(clk_name, "dma.%d", i); |
1267 | phy->clk = devm_clk_get(&pdev->dev, clk_name); | 1262 | phy->clk = devm_clk_get(&pdev->dev, clk_name); |
1268 | if (IS_ERR(phy->clk) && sdata->has_clocks) { | 1263 | if (IS_ERR(phy->clk) && sdata->has_clocks) { |
1269 | dev_err(&pdev->dev, "unable to aquire clock for channel %d, error %lu", | 1264 | dev_err(&pdev->dev, "unable to acquire clock for channel %d, error %lu\n", |
1270 | i, PTR_ERR(phy->clk)); | 1265 | i, PTR_ERR(phy->clk)); |
1271 | continue; | 1266 | continue; |
1272 | } | 1267 | } |
@@ -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; |