From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752917AbcGCSU2 (ORCPT ); Sun, 3 Jul 2016 14:20:28 -0400 Received: from mail5.windriver.com ([192.103.53.11]:43615 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850AbcGCSU0 (ORCPT ); Sun, 3 Jul 2016 14:20:26 -0400 From: Paul Gortmaker To: CC: Paul Gortmaker , "Rafael J. Wysocki" Subject: [PATCH] PNP: make pnpbios core explicitly non-modular Date: Sun, 3 Jul 2016 14:20:15 -0400 Message-ID: <20160703182015.30225-1-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.8.4 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: config PNPBIOS bool "Plug and Play BIOS support" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity, so that when reading the driver there is no doubt it is builtin-only. Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit. Cc: "Rafael J. Wysocki" Signed-off-by: Paul Gortmaker --- drivers/pnp/pnpbios/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c index facd43b8516c..b0a3f5e6ac1c 100644 --- a/drivers/pnp/pnpbios/core.c +++ b/drivers/pnp/pnpbios/core.c @@ -46,7 +46,6 @@ */ #include -#include #include #include #include @@ -586,6 +585,6 @@ static int __init pnpbios_thread_init(void) } /* Start the kernel thread later: */ -module_init(pnpbios_thread_init); +device_initcall(pnpbios_thread_init); EXPORT_SYMBOL(pnpbios_protocol); -- 2.6.1