lkml.org 
[lkml]   [2008]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch v2 13/16] MMC: S3C24XX: MMC/SD driver fix use of sg lists.
Fix sg_ usage in the S3C24XX MMC driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

Index: linux-2.6.26-rc5-q2/drivers/mmc/host/s3cmci.c
===================================================================
--- linux-2.6.26-rc5-q2.orig/drivers/mmc/host/s3cmci.c 2008-06-08 14:02:34.000000000 +0100
+++ linux-2.6.26-rc5-q2/drivers/mmc/host/s3cmci.c 2008-06-08 14:02:36.000000000 +0100
@@ -205,7 +205,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'


\
 
 \ /
  Last update: 2008-06-16 16:45    [W:0.082 / U:3.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site