diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2011-01-28 13:58:54 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2011-03-02 02:36:46 -0500 |
commit | d285e8bfe9d1a196e26b798cc04f8c5ebc60c856 (patch) | |
tree | a2dfdb19e453aef890fc83a59cc104e0636cbfdf /drivers | |
parent | c211962dc12d609effbf00a2c5c6fc38cc1dbc54 (diff) |
sata_dwc_460ex: fix return value of dma_dwc_xfer_setup()
The caller expects this function to return the DMA channel number on success,
while it returns 0...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 9d78f9b78f41..34fc1372d72d 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #undef DRV_NAME | 44 | #undef DRV_NAME |
45 | #undef DRV_VERSION | 45 | #undef DRV_VERSION |
46 | #define DRV_NAME "sata-dwc" | 46 | #define DRV_NAME "sata-dwc" |
47 | #define DRV_VERSION "1.1" | 47 | #define DRV_VERSION "1.2" |
48 | 48 | ||
49 | /* SATA DMA driver Globals */ | 49 | /* SATA DMA driver Globals */ |
50 | #define DMA_NUM_CHANS 1 | 50 | #define DMA_NUM_CHANS 1 |
@@ -718,7 +718,7 @@ static int dma_dwc_xfer_setup(struct scatterlist *sg, int num_elems, | |||
718 | /* Program the CTL register with src enable / dst enable */ | 718 | /* Program the CTL register with src enable / dst enable */ |
719 | out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].ctl.low), | 719 | out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].ctl.low), |
720 | DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN); | 720 | DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN); |
721 | return 0; | 721 | return dma_ch; |
722 | } | 722 | } |
723 | 723 | ||
724 | /* | 724 | /* |