diff options
Diffstat (limited to 'drivers/dma/ioat_dma.c')
-rw-r--r-- | drivers/dma/ioat_dma.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/dma/ioat_dma.c b/drivers/dma/ioat_dma.c index 4017d9e7acd2..1517fe4e2d14 100644 --- a/drivers/dma/ioat_dma.c +++ b/drivers/dma/ioat_dma.c | |||
@@ -924,17 +924,6 @@ static void ioat_dma_memcpy_cleanup(struct ioat_dma_chan *ioat_chan) | |||
924 | spin_unlock_bh(&ioat_chan->cleanup_lock); | 924 | spin_unlock_bh(&ioat_chan->cleanup_lock); |
925 | } | 925 | } |
926 | 926 | ||
927 | static void ioat_dma_dependency_added(struct dma_chan *chan) | ||
928 | { | ||
929 | struct ioat_dma_chan *ioat_chan = to_ioat_chan(chan); | ||
930 | spin_lock_bh(&ioat_chan->desc_lock); | ||
931 | if (ioat_chan->pending == 0) { | ||
932 | spin_unlock_bh(&ioat_chan->desc_lock); | ||
933 | ioat_dma_memcpy_cleanup(ioat_chan); | ||
934 | } else | ||
935 | spin_unlock_bh(&ioat_chan->desc_lock); | ||
936 | } | ||
937 | |||
938 | /** | 927 | /** |
939 | * ioat_dma_is_complete - poll the status of a IOAT DMA transaction | 928 | * ioat_dma_is_complete - poll the status of a IOAT DMA transaction |
940 | * @chan: IOAT DMA channel handle | 929 | * @chan: IOAT DMA channel handle |
@@ -1316,7 +1305,6 @@ struct ioatdma_device *ioat_dma_probe(struct pci_dev *pdev, | |||
1316 | 1305 | ||
1317 | dma_cap_set(DMA_MEMCPY, device->common.cap_mask); | 1306 | dma_cap_set(DMA_MEMCPY, device->common.cap_mask); |
1318 | device->common.device_is_tx_complete = ioat_dma_is_complete; | 1307 | device->common.device_is_tx_complete = ioat_dma_is_complete; |
1319 | device->common.device_dependency_added = ioat_dma_dependency_added; | ||
1320 | switch (device->version) { | 1308 | switch (device->version) { |
1321 | case IOAT_VER_1_2: | 1309 | case IOAT_VER_1_2: |
1322 | device->common.device_prep_dma_memcpy = ioat1_dma_prep_memcpy; | 1310 | device->common.device_prep_dma_memcpy = ioat1_dma_prep_memcpy; |