From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932899AbcILRnz (ORCPT ); Mon, 12 Sep 2016 13:43:55 -0400 Received: from down.free-electrons.com ([37.187.137.238]:39885 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932750AbcILRnw (ORCPT ); Mon, 12 Sep 2016 13:43:52 -0400 Date: Mon, 12 Sep 2016 19:43:49 +0200 From: Boris Brezillon To: Paul Gortmaker Cc: , Samuel Ortiz , Lee Jones , Maxime Ripard Subject: Re: [PATCH 5/6] mfd: sun6i-prcm: Make it explicitly non-modular Message-ID: <20160912194349.215eafcc@bbrezillon> In-Reply-To: <20160912144054.27522-6-paul.gortmaker@windriver.com> References: <20160912144054.27522-1-paul.gortmaker@windriver.com> <20160912144054.27522-6-paul.gortmaker@windriver.com> Organization: Free Electrons X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Sep 2016 10:40:53 -0400 Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/mfd/Kconfig:config MFD_SUN6I_PRCM > drivers/mfd/Kconfig: bool "Allwinner A31 PRCM controller" > > ...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_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. > > Cc: Samuel Ortiz > Cc: Lee Jones > Cc: Maxime Ripard > Acked-by: Maxime Ripard > Cc: Boris BREZILLON Acked-by: Boris Brezillon > Signed-off-by: Paul Gortmaker > --- > drivers/mfd/sun6i-prcm.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c > index 191173166d65..011fcc555945 100644 > --- a/drivers/mfd/sun6i-prcm.c > +++ b/drivers/mfd/sun6i-prcm.c > @@ -9,7 +9,7 @@ > */ > > #include > -#include > +#include > #include > > struct prcm_data { > @@ -170,8 +170,4 @@ static struct platform_driver sun6i_prcm_driver = { > }, > .probe = sun6i_prcm_probe, > }; > -module_platform_driver(sun6i_prcm_driver); > - > -MODULE_AUTHOR("Boris BREZILLON "); > -MODULE_DESCRIPTION("Allwinner sun6i PRCM driver"); > -MODULE_LICENSE("GPL v2"); > +builtin_platform_driver(sun6i_prcm_driver);