diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-12-10 23:29:37 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2001-12-10 23:29:37 +0000 |
commit | f18a6d836b5e0081dff9217b44e88e74c421c576 (patch) | |
tree | 6f104249c42e776ff94465464394c7c0f5f771cf /linux/ati_pcigart.h | |
parent | 727abee235478a66c90a8cd097f85307e232524a (diff) |
merge with linux kernel 2.4.15X_4_2_0-20020127-preimportX_4_2_0-20020123-preimport
Diffstat (limited to 'linux/ati_pcigart.h')
-rw-r--r-- | linux/ati_pcigart.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/ati_pcigart.h b/linux/ati_pcigart.h index 8b486c10..5851b72f 100644 --- a/linux/ati_pcigart.h +++ b/linux/ati_pcigart.h @@ -36,7 +36,7 @@ #elif PAGE_SIZE == 4096 # define ATI_PCIGART_TABLE_ORDER 3 # define ATI_PCIGART_TABLE_PAGES (1 << 3) -#elif +#else # error - PAGE_SIZE not 8K or 4K #endif @@ -57,7 +57,7 @@ static unsigned long DRM(ati_alloc_pcigart_table)( void ) page = virt_to_page( address ); - for ( i = 0 ; i <= ATI_PCIGART_TABLE_PAGES ; i++, page++ ) { + for ( i = 0 ; i < ATI_PCIGART_TABLE_PAGES ; i++, page++ ) { atomic_inc( &page->count ); SetPageReserved( page ); } @@ -74,7 +74,7 @@ static void DRM(ati_free_pcigart_table)( unsigned long address ) page = virt_to_page( address ); - for ( i = 0 ; i <= ATI_PCIGART_TABLE_PAGES ; i++, page++ ) { + for ( i = 0 ; i < ATI_PCIGART_TABLE_PAGES ; i++, page++ ) { atomic_dec( &page->count ); ClearPageReserved( page ); } |