pte_offset is now pte_offset_kernel in 2.6
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Aug 2003 03:28:55 +0000 (03:28 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 4 Aug 2003 03:28:55 +0000 (03:28 +0000)
comedi/drivers.c

index 8df803f36df7757f06cc330d3158deddc97bb87a..8464b1c0e05320dc481c5ee2a5e74979dd019f77 100644 (file)
@@ -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));