OSDN Git Service

staging: android: ion: Nuke ion_page_pool_init
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 12 Feb 2018 10:43:08 +0000 (18:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 16:29:07 +0000 (17:29 +0100)
ion_page_pool.c now is used to apply pool APIs for system heap, which do
not need do any initial at device_initcall. Therefore ion_page_pool_init
can be nuked.

Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c

index f0847b3..4452e28 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <linux/list.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/swap.h>
 
@@ -158,9 +157,3 @@ void ion_page_pool_destroy(struct ion_page_pool *pool)
 {
        kfree(pool);
 }
-
-static int __init ion_page_pool_init(void)
-{
-       return 0;
-}
-device_initcall(ion_page_pool_init);