X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fagp%2Falpha-agp.c;h=2b5838e64751a3bc3cb0ba005deba67b88cbfdc9;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=b4e00a343da9162e559f305794ae31cc99842285;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/drivers/char/agp/alpha-agp.c b/drivers/char/agp/alpha-agp.c index b4e00a343..2b5838e64 100644 --- a/drivers/char/agp/alpha-agp.c +++ b/drivers/char/agp/alpha-agp.c @@ -46,6 +46,12 @@ struct vm_operations_struct alpha_core_agp_vm_ops = { }; +static int alpha_core_agp_nop(void) +{ + /* just return success */ + return 0; +} + static int alpha_core_agp_fetch_size(void) { return alpha_core_agp_sizes[0].size; @@ -114,11 +120,6 @@ static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start, return status; } -static int alpha_core_agp_create_free_gatt_table(struct agp_bridge_data *a) -{ - return 0; -} - struct agp_bridge_driver alpha_core_agp_driver = { .owner = THIS_MODULE, .aperture_sizes = alpha_core_agp_sizes, @@ -134,8 +135,8 @@ struct agp_bridge_driver alpha_core_agp_driver = { .tlb_flush = alpha_core_agp_tlbflush, .mask_memory = agp_generic_mask_memory, .cache_flush = global_cache_flush, - .create_gatt_table = alpha_core_agp_create_free_gatt_table, - .free_gatt_table = alpha_core_agp_create_free_gatt_table, + .create_gatt_table = alpha_core_agp_nop, + .free_gatt_table = alpha_core_agp_nop, .insert_memory = alpha_core_agp_insert_memory, .remove_memory = alpha_core_agp_remove_memory, .alloc_by_type = agp_generic_alloc_by_type,