agp: kill agp_rebind_memory
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 5 Nov 2010 21:27:10 +0000 (22:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Nov 2010 20:14:46 +0000 (20:14 +0000)
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>
drivers/char/agp/generic.c
include/linux/agp_backend.h

index 78bc8de0f234afdc1e0444d0eef453b1fe6b9a79..012cba0d6d965219de4d286a855285eeab05ec23 100644 (file)
@@ -480,26 +480,6 @@ int agp_unbind_memory(struct agp_memory *curr)
 }
 EXPORT_SYMBOL(agp_unbind_memory);
 
-/**
- *     agp_rebind_emmory  -  Rewrite the entire GATT, useful on resume
- */
-int agp_rebind_memory(void)
-{
-       struct agp_memory *curr;
-       int ret_val = 0;
-
-       spin_lock(&agp_bridge->mapped_lock);
-       list_for_each_entry(curr, &agp_bridge->mapped_list, mapped_list) {
-               ret_val = curr->bridge->driver->insert_memory(curr,
-                                                             curr->pg_start,
-                                                             curr->type);
-               if (ret_val != 0)
-                       break;
-       }
-       spin_unlock(&agp_bridge->mapped_lock);
-       return ret_val;
-}
-EXPORT_SYMBOL(agp_rebind_memory);
 
 /* End - Routines for handling swapping of agp_memory into the GATT */
 
index a479b4885d254480a44d654580f0d9def66f5560..eaf6cd75a1b19c2533371c20c39d68b162024d47 100644 (file)
@@ -102,7 +102,6 @@ extern struct agp_memory *agp_allocate_memory(struct agp_bridge_data *, size_t,
 extern int agp_copy_info(struct agp_bridge_data *, struct agp_kern_info *);
 extern int agp_bind_memory(struct agp_memory *, off_t);
 extern int agp_unbind_memory(struct agp_memory *);
-extern int agp_rebind_memory(void);
 extern void agp_enable(struct agp_bridge_data *, u32);
 extern struct agp_bridge_data *agp_backend_acquire(struct pci_dev *);
 extern void agp_backend_release(struct agp_bridge_data *);