From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758177AbcGKKTd (ORCPT ); Mon, 11 Jul 2016 06:19:33 -0400 Received: from ozlabs.org ([103.22.144.67]:38525 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501AbcGKKTc (ORCPT ); Mon, 11 Jul 2016 06:19:32 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: e00878be3f414a99234b3c9613e2fcab7497cd4b In-Reply-To: <20160703203153.6155-1-paul.gortmaker@windriver.com> To: Paul Gortmaker , From: Michael Ellerman Cc: Paul Gortmaker , Michael Neuling , linuxppc-dev@lists.ozlabs.org, Ian Munsie Subject: Re: cxl: make base more explicitly non-modular Message-Id: <3rp1Kt2dPMz9t10@ozlabs.org> Date: Mon, 11 Jul 2016 20:19:30 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2016-03-07 at 20:31:53 UTC, Paul Gortmaker wrote: > The Kconfig/Makefile currently controlling compilation of this code is: > > drivers/misc/cxl/Kconfig:config CXL_BASE > drivers/misc/cxl/Kconfig: bool > > drivers/misc/cxl/Makefile:obj-$(CONFIG_CXL_BASE) += base.o > > ...meaning that it currently is not being built as a module by anyone. > > Lets convert the one module_init into device_initcall so that > when reading the driver it more clear that it is builtin-only. > > Since module_init translates to device_initcall in the non-modular > case, the init ordering remains unchanged with this commit. > > We don't replace module.h with init.h since the file is doing > other modular stuff (module_get/put) even though it is built-in. > > Cc: Ian Munsie > Cc: Michael Neuling > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Paul Gortmaker > Acked-by: Ian Munsie Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/e00878be3f414a99234b3c9613 cheers