diff options
Diffstat (limited to 'linux/ati_pcigart.h')
-rw-r--r-- | linux/ati_pcigart.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/ati_pcigart.h b/linux/ati_pcigart.h index 221ceb6d..9ad49c06 100644 --- a/linux/ati_pcigart.h +++ b/linux/ati_pcigart.h @@ -68,7 +68,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++ ) { - atomic_inc( &page->count ); + get_page(page); SetPageReserved( page ); } @@ -85,7 +85,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++ ) { - atomic_dec( &page->count ); + __put_page(page); ClearPageReserved( page ); } |