From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757178AbcI0BVO (ORCPT ); Mon, 26 Sep 2016 21:21:14 -0400 Received: from mail1.windriver.com ([147.11.146.13]:35883 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756508AbcI0BUz (ORCPT ); Mon, 26 Sep 2016 21:20:55 -0400 From: Paul Gortmaker To: CC: Paul Gortmaker , Linus Walleij Subject: [PATCH] bus: qcom-ebi2: make it explicitly non-modular Date: Mon, 26 Sep 2016 21:20:42 -0400 Message-ID: <20160927012042.6739-1-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.10.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/bus/Kconfig:config QCOM_EBI2 drivers/bus/Kconfig: bool "Qualcomm External Bus Interface 2 (EBI2)" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. We don't replace module.h with init.h since the file already has that. Cc: Linus Walleij Signed-off-by: Paul Gortmaker --- drivers/bus/qcom-ebi2.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/bus/qcom-ebi2.c b/drivers/bus/qcom-ebi2.c index a6444244c411..d34a6ef02827 100644 --- a/drivers/bus/qcom-ebi2.c +++ b/drivers/bus/qcom-ebi2.c @@ -14,7 +14,6 @@ * hardware. */ -#include #include #include #include @@ -402,7 +401,4 @@ static struct platform_driver qcom_ebi2_driver = { .of_match_table = qcom_ebi2_of_match, }, }; -module_platform_driver(qcom_ebi2_driver); -MODULE_AUTHOR("Linus Walleij "); -MODULE_DESCRIPTION("Qualcomm EBI2 driver"); -MODULE_LICENSE("GPL"); +builtin_platform_driver(qcom_ebi2_driver); -- 2.10.0