diff options
Diffstat (limited to 'drivers/ide/tx4939ide.c')
-rw-r--r-- | drivers/ide/tx4939ide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c index bf11791476f0..8d155ec8cca9 100644 --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c | |||
@@ -240,7 +240,7 @@ static int tx4939ide_build_dmatable(ide_drive_t *drive, struct request *rq) | |||
240 | int i; | 240 | int i; |
241 | struct scatterlist *sg; | 241 | struct scatterlist *sg; |
242 | 242 | ||
243 | for_each_sg(hwif->sg_table, sg, hwif->sg_nents, i) { | 243 | for_each_sg(hwif->sg_table, sg, hwif->cmd.sg_nents, i) { |
244 | u32 cur_addr, cur_len, bcount; | 244 | u32 cur_addr, cur_len, bcount; |
245 | 245 | ||
246 | cur_addr = sg_dma_address(sg); | 246 | cur_addr = sg_dma_address(sg); |