]> Pileus Git - ~andy/linux/blobdiff - drivers/mmc/mmci.h
Driver core: add device symlink back to sysfs
[~andy/linux] / drivers / mmc / mmci.h
index 4589bbd6819279901e961bf7b3a29a621c005051..6d7eadc9a6789b5e354b70c12a7e9d62d08526c1 100644 (file)
@@ -172,8 +172,8 @@ static inline char *mmci_kmap_atomic(struct mmci_host *host, unsigned long *flag
        return kmap_atomic(sg->page, KM_BIO_SRC_IRQ) + sg->offset;
 }
 
-static inline void mmci_kunmap_atomic(struct mmci_host *host, unsigned long *flags)
+static inline void mmci_kunmap_atomic(struct mmci_host *host, void *buffer, unsigned long *flags)
 {
-       kunmap_atomic(host->sg_ptr->page, KM_BIO_SRC_IRQ);
+       kunmap_atomic(buffer, KM_BIO_SRC_IRQ);
        local_irq_restore(*flags);
 }