diff options
Diffstat (limited to 'drivers/ide/mips')
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index 1de58566e5b6..a4ce3ba15d61 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
@@ -276,8 +276,7 @@ static int auide_build_dmatable(ide_drive_t *drive) | |||
276 | 276 | ||
277 | if (iswrite) { | 277 | if (iswrite) { |
278 | if(!put_source_flags(ahwif->tx_chan, | 278 | if(!put_source_flags(ahwif->tx_chan, |
279 | (void*)(page_address(sg->page) | 279 | (void*) sg_virt(sg), |
280 | + sg->offset), | ||
281 | tc, flags)) { | 280 | tc, flags)) { |
282 | printk(KERN_ERR "%s failed %d\n", | 281 | printk(KERN_ERR "%s failed %d\n", |
283 | __FUNCTION__, __LINE__); | 282 | __FUNCTION__, __LINE__); |
@@ -285,8 +284,7 @@ static int auide_build_dmatable(ide_drive_t *drive) | |||
285 | } else | 284 | } else |
286 | { | 285 | { |
287 | if(!put_dest_flags(ahwif->rx_chan, | 286 | if(!put_dest_flags(ahwif->rx_chan, |
288 | (void*)(page_address(sg->page) | 287 | (void*) sg_virt(sg), |
289 | + sg->offset), | ||
290 | tc, flags)) { | 288 | tc, flags)) { |
291 | printk(KERN_ERR "%s failed %d\n", | 289 | printk(KERN_ERR "%s failed %d\n", |
292 | __FUNCTION__, __LINE__); | 290 | __FUNCTION__, __LINE__); |