dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Sergei Shtylyov 2011-01-28 21:58:54 +03:00 committed by Jeff Garzik
parent c211962dc1
commit d285e8bfe9
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
#undef DRV_NAME
#undef DRV_VERSION
#define DRV_NAME "sata-dwc"
#define DRV_VERSION "1.1"
#define DRV_VERSION "1.2"
/* SATA DMA driver Globals */
#define DMA_NUM_CHANS 1
@ -718,7 +718,7 @@ static int dma_dwc_xfer_setup(struct scatterlist *sg, int num_elems,
/* Program the CTL register with src enable / dst enable */
out_le32(&(host_pvt.sata_dma_regs->chan_regs[dma_ch].ctl.low),
DMA_CTL_LLP_SRCEN | DMA_CTL_LLP_DSTEN);
return 0;
return dma_ch;
}
/*