diff options
Diffstat (limited to 'drivers/ide/cris/ide-cris.c')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index ff20377b4c82..e196aefa2070 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c | |||
@@ -935,11 +935,11 @@ static int cris_ide_build_dmatable (ide_drive_t *drive) | |||
935 | * than two possibly non-adjacent physical 4kB pages. | 935 | * than two possibly non-adjacent physical 4kB pages. |
936 | */ | 936 | */ |
937 | /* group sequential buffers into one large buffer */ | 937 | /* group sequential buffers into one large buffer */ |
938 | addr = page_to_phys(sg->page) + sg->offset; | 938 | addr = sg_phys(sg); |
939 | size = sg_dma_len(sg); | 939 | size = sg_dma_len(sg); |
940 | while (--i) { | 940 | while (--i) { |
941 | sg = sg_next(sg); | 941 | sg = sg_next(sg); |
942 | if ((addr + size) != page_to_phys(sg->page) + sg->offset) | 942 | if ((addr + size) != sg_phys(sg)) |
943 | break; | 943 | break; |
944 | size += sg_dma_len(sg); | 944 | size += sg_dma_len(sg); |
945 | } | 945 | } |