Received: by 10.223.176.5 with SMTP id f5csp1150838wra; Wed, 31 Jan 2018 02:00:55 -0800 (PST) X-Google-Smtp-Source: AH8x225Y8iyjH4StRen4MlFI7Yw5nHMl+tRRLej2RwxgSSc5pI2XP3a8iAmsFtjOXFDeFFgTd5Y0 X-Received: by 10.101.96.3 with SMTP id m3mr25926041pgu.409.1517392855704; Wed, 31 Jan 2018 02:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517392855; cv=none; d=google.com; s=arc-20160816; b=itjUpW7UgHdkUE6CiCOFBc60x6ExT5qLOyx5l+JID3TWA1UTihYF0XvLdA6m/6jct5 24FBzDRFP+OcnSDHPyxD+hzWm5z6SRmMQ4N0xqs8+OPfZxZHtDjcOesgCSmWRRQkvgdz p3Vv0UhYvTFrqiXpVTeHoiXiC80Sw4EpwKiiGx+RBPDoHMnGQwRgIhtjsAiJ3L4gX9gK +Q+r89koi/gn9r6NY/T8Wh6M0bljh5OK5VCiUqDeY6gAVddP/TC+ENFeJHOU/XAUYUvs f7sh48a8E1YCbqLnTb0l61J2OlY/kPaGC6XvZUTqvm1HIM72a4/+jJZEofwbAimBA/2K PdWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=LG6nK/jtgAuVPsspWHa4f1sTs/svWDM0wUfUsas/Awo=; b=F8zOYyBquhC8ovBgUkde2r8Ry2MhvRehlB2cF3AW+HT7USveBZJrFy02Y1+mXzqhHR m+a96+71Bnocw6ztbPvNa0GZCs0Ccj8yFS2d38nCWOBVY0Hyygeldz3P+GypaB39bTr3 3qKUi5Mrz7EmgS0H02dcLgtOHpTc59p7pKO/rmlru5nOaw2RBZ9namRQkozYOuAnYXfI 9GXgk173zzE+Ea4kqaQw6v+jQvhy+jdz3HF+1Z9VegLHH+V4KYg97qXiwYuv776+6p0V /aP1XdbBLh81rTxelTsWWM9SlqoACAO8hN3p3JElXCDfuEF8OQ4E0lewtI/uBhwgZ1U6 Vz1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay2-v6si947706plb.664.2018.01.31.02.00.40; Wed, 31 Jan 2018 02:00:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923AbeAaKAL (ORCPT + 99 others); Wed, 31 Jan 2018 05:00:11 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:5149 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751521AbeAaKAJ (ORCPT ); Wed, 31 Jan 2018 05:00:09 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 97717EAC71B67; Wed, 31 Jan 2018 17:59:55 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 31 Jan 2018 17:59:48 +0800 From: Yisheng Xie To: CC: , , , , Yisheng Xie Subject: [PATCH] staging: android: ion: minor cleanup for ion_page_pool Date: Wed, 31 Jan 2018 17:50:52 +0800 Message-ID: <1517392252-20964-1-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ion_page_pool.c now is used to apply pool APIs for system heap, which do not need do any initial at device_initcall. Meanwhile, this patch also remove some useless include files. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion_page_pool.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c index 817849d..3c1eba5 100644 --- a/drivers/staging/android/ion/ion_page_pool.c +++ b/drivers/staging/android/ion/ion_page_pool.c @@ -14,12 +14,7 @@ * */ -#include -#include -#include -#include #include -#include #include #include @@ -171,9 +166,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); -- 1.7.12.4