patch-2.4.9 linux/drivers/char/drm/drm_scatter.h
Next file: linux/drivers/char/drm/drm_vm.h
Previous file: linux/drivers/char/drm/drm_context.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Aug 15 14:21:50 2001
- Orig file:
v2.4.8/linux/drivers/char/drm/drm_scatter.h
- Orig date:
Sun Aug 12 13:27:59 2001
diff -u --recursive --new-file v2.4.8/linux/drivers/char/drm/drm_scatter.h linux/drivers/char/drm/drm_scatter.h
@@ -155,7 +155,7 @@
for ( i = 0 ; i < pages ; i++ ) {
unsigned long *tmp;
- tmp = (unsigned long *)entry->pagelist[i]->virtual;
+ tmp = page_address( entry->pagelist[i] );
for ( j = 0 ;
j < PAGE_SIZE / sizeof(unsigned long) ;
j++, tmp++ ) {
@@ -173,7 +173,7 @@
"virtual mapping\n" );
}
}
- tmp = (unsigned long *)entry->pagelist[i]->virtual;
+ tmp = page_address( entry->pagelist[i] );
for(j = 0 ;
j < PAGE_SIZE / sizeof(unsigned long) ;
j++, tmp++) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)