aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEmil Medve <Emilian.Medve@Freescale.com>2007-10-23 14:37:24 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-10-23 14:37:24 -0400
commit4e0177647a3686f3658c26d52a60d0f1231c2127 (patch)
tree40c51f5668d80d660dab5d90c7bacb2737d8f353 /drivers
parentde26103de56a0c482ad21296eae9b06deefc8e62 (diff)
mmc: fix sg->page fallout
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/mmci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.h b/drivers/mmc/host/mmci.h
index 000e6a91978..0f39c490f02 100644
--- a/drivers/mmc/host/mmci.h
+++ b/drivers/mmc/host/mmci.h
@@ -169,7 +169,7 @@ static inline char *mmci_kmap_atomic(struct mmci_host *host, unsigned long *flag
169 struct scatterlist *sg = host->sg_ptr; 169 struct scatterlist *sg = host->sg_ptr;
170 170
171 local_irq_save(*flags); 171 local_irq_save(*flags);
172 return kmap_atomic(sg->page, KM_BIO_SRC_IRQ) + sg->offset; 172 return kmap_atomic(sg_page(sg), KM_BIO_SRC_IRQ) + sg->offset;
173} 173}
174 174
175static inline void mmci_kunmap_atomic(struct mmci_host *host, void *buffer, unsigned long *flags) 175static inline void mmci_kunmap_atomic(struct mmci_host *host, void *buffer, unsigned long *flags)