Messages in this thread Patch in this message | | | Date | Fri, 06 Jun 2008 16:51:29 +0100 | From | Ben Dooks <> | Subject | [patch 12/15] MMC: S3C24XX MMC/SD driver fixes for sg_ access. |
| |
Fix sg_ usage in the S3C24XX MMC driver.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Index: linux-2.6.26-rc5-q/drivers/mmc/host/s3cmci.c =================================================================== --- linux-2.6.26-rc5-q.orig/drivers/mmc/host/s3cmci.c 2008-06-06 15:47:28.000000000 +0100 +++ linux-2.6.26-rc5-q/drivers/mmc/host/s3cmci.c 2008-06-06 15:47:30.000000000 +0100 @@ -204,7 +204,7 @@ static inline int get_data_buffer(struct sg = &host->mrq->data->sg[host->pio_sgptr]; *words = sg->length >> 2; - *pointer= page_address(sg->page) + sg->offset; + *pointer= sg_virt(sg); host->pio_sgptr++; -- Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
| |