staging: android: ion: Rework heap registration/enumeration
[linux-2.6-microblaze.git] / drivers / staging / android / ion / ion_chunk_heap.c
index 9210bfe..9c257c7 100644 (file)
@@ -160,12 +160,3 @@ error_gen_pool_create:
        return ERR_PTR(ret);
 }
 
-void ion_chunk_heap_destroy(struct ion_heap *heap)
-{
-       struct ion_chunk_heap *chunk_heap =
-            container_of(heap, struct  ion_chunk_heap, heap);
-
-       gen_pool_destroy(chunk_heap->pool);
-       kfree(chunk_heap);
-       chunk_heap = NULL;
-}