Commit cb16b67b5cb33b7d6732e0c416d29d933eea13ce

Authored by Daniel Vetter
Committed by Chris Wilson
1 parent 76aaf22016

agp: kill agp_rebind_memory

Its only user, intel-gtt.c is now gone.

Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Showing 2 changed files with 0 additions and 21 deletions Side-by-side Diff

drivers/char/agp/generic.c
... ... @@ -480,26 +480,6 @@
480 480 }
481 481 EXPORT_SYMBOL(agp_unbind_memory);
482 482  
483   -/**
484   - * agp_rebind_emmory - Rewrite the entire GATT, useful on resume
485   - */
486   -int agp_rebind_memory(void)
487   -{
488   - struct agp_memory *curr;
489   - int ret_val = 0;
490   -
491   - spin_lock(&agp_bridge->mapped_lock);
492   - list_for_each_entry(curr, &agp_bridge->mapped_list, mapped_list) {
493   - ret_val = curr->bridge->driver->insert_memory(curr,
494   - curr->pg_start,
495   - curr->type);
496   - if (ret_val != 0)
497   - break;
498   - }
499   - spin_unlock(&agp_bridge->mapped_lock);
500   - return ret_val;
501   -}
502   -EXPORT_SYMBOL(agp_rebind_memory);
503 483  
504 484 /* End - Routines for handling swapping of agp_memory into the GATT */
505 485  
include/linux/agp_backend.h
... ... @@ -102,7 +102,6 @@
102 102 extern int agp_copy_info(struct agp_bridge_data *, struct agp_kern_info *);
103 103 extern int agp_bind_memory(struct agp_memory *, off_t);
104 104 extern int agp_unbind_memory(struct agp_memory *);
105   -extern int agp_rebind_memory(void);
106 105 extern void agp_enable(struct agp_bridge_data *, u32);
107 106 extern struct agp_bridge_data *agp_backend_acquire(struct pci_dev *);
108 107 extern void agp_backend_release(struct agp_bridge_data *);