From a0b8ceca87ec147a89b2c492fbaf4ac46036b155 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 4 Aug 2003 03:28:55 +0000 Subject: [PATCH] pte_offset is now pte_offset_kernel in 2.6 --- comedi/drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.26.2