From: Frank Mori Hess Date: Mon, 4 Aug 2003 03:28:55 +0000 (+0000) Subject: pte_offset is now pte_offset_kernel in 2.6 X-Git-Tag: r0_7_69~293 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0b8ceca87ec147a89b2c492fbaf4ac46036b155;p=comedi.git pte_offset is now pte_offset_kernel in 2.6 --- diff --git a/comedi/drivers.c b/comedi/drivers.c index 8df803f3..8464b1c0 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -373,7 +373,7 @@ static inline unsigned long uvirt_to_kva(pgd_t *pgd, unsigned long adr) if(!pgd_none(*pgd)){ pmd = pmd_offset(pgd, adr); if(!pmd_none(*pmd)){ - ptep = pte_offset(pmd, adr); + ptep = pte_offset_kernel(pmd, adr); pte = *ptep; if(pte_present(pte)){ ret = (unsigned long) page_address(pte_page(pte));