diff options
Diffstat (limited to 'drivers/usb/image')
-rw-r--r-- | drivers/usb/image/microtek.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index e7d982a71548..91e999c9f680 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c | |||
@@ -519,8 +519,7 @@ static void mts_do_sg (struct urb* transfer) | |||
519 | context->fragment++; | 519 | context->fragment++; |
520 | mts_int_submit_urb(transfer, | 520 | mts_int_submit_urb(transfer, |
521 | context->data_pipe, | 521 | context->data_pipe, |
522 | page_address(sg[context->fragment].page) + | 522 | sg_virt(&sg[context->fragment]), |
523 | sg[context->fragment].offset, | ||
524 | sg[context->fragment].length, | 523 | sg[context->fragment].length, |
525 | context->fragment + 1 == scsi_sg_count(context->srb) ? | 524 | context->fragment + 1 == scsi_sg_count(context->srb) ? |
526 | mts_data_done : mts_do_sg); | 525 | mts_data_done : mts_do_sg); |
@@ -557,7 +556,7 @@ mts_build_transfer_context(struct scsi_cmnd *srb, struct mts_desc* desc) | |||
557 | return; | 556 | return; |
558 | } else { | 557 | } else { |
559 | sg = scsi_sglist(srb); | 558 | sg = scsi_sglist(srb); |
560 | desc->context.data = page_address(sg[0].page) + sg[0].offset; | 559 | desc->context.data = sg_virt(&sg[0]); |
561 | desc->context.data_length = sg[0].length; | 560 | desc->context.data_length = sg[0].length; |
562 | } | 561 | } |
563 | 562 | ||