Correction of "Update drivers to use sg helpers" patch for IMXMMC driver
authorPavel Pisa <ppisa4lists@pikron.com>
Fri, 26 Oct 2007 17:29:49 +0000 (19:29 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Oct 2007 08:18:04 +0000 (09:18 +0100)
The previous change omits "data->" prefix
in the "data->sg" case. This change fixes kernel
compilation.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
 drivers/mmc/host/imxmmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
drivers/mmc/host/imxmmc.c

index fc72e1fadb6adf291356e796d16cc3e036d764c5..f2070a19cfa77fe25ff57aad4d60d54a90864a27 100644 (file)
@@ -262,7 +262,7 @@ static void imxmci_setup_data(struct imxmci_host *host, struct mmc_data *data)
                }
 
                /* Convert back to virtual address */
-               host->data_ptr = (u16*)sg_virt(sg);
+               host->data_ptr = (u16*)sg_virt(data->sg);
                host->data_cnt = 0;
 
                clear_bit(IMXMCI_PEND_DMA_DATA_b, &host->pending_events);