From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guodong Xu Subject: Re: [PATCH 4/6] regulator: hi6421v530: add driver for hi6421v530 voltage regulator Date: Sat, 27 May 2017 17:42:01 +0800 Message-ID: References: <20170526063518.21246-1-guodong.xu@linaro.org> <20170526063518.21246-5-guodong.xu@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Javier Martinez Canillas Cc: Mark Rutland , Geert Uytterhoeven , Catalin Marinas , Linus Walleij , Will Deacon , Linux Kernel , Masahiro Yamada , Krzysztof Kozlowski , Lee Jones , Kevin Hilman , damm+renesas@opensource.se, "xuwei (O)" , Thierry Reding , "devicetree@vger.kernel.org" , Arnd Bergmann , Mark Brown , Gregory Clement , "linux-arm-kernel@lists.infradead.org" , Thomas Petazzoni , Eric Anholt , Riku Voipio List-Id: devicetree@vger.kernel.org On Fri, May 26, 2017 at 8:13 PM, Javier Martinez Canillas wrote: > Hello Guodong, > > On Fri, May 26, 2017 at 8:35 AM, Guodong Xu wrote: >> From: Wang Xiaoyin >> > > [snip] > >> >> +config REGULATOR_HI6421V530 >> + tristate "HiSilicon Hi6421v530 PMIC voltage regulator support" > > The Kconfig symbol is tristate so the driver can be built as a module... > >> + >> +static struct platform_driver hi6421v530_regulator_driver = { >> + .driver = { >> + .name = "hi6421v530-regulator", >> + }, >> + .probe = hi6421v530_regulator_probe, >> +}; >> +module_platform_driver(hi6421v530_regulator_driver); > > ... but the driver doesn't have a platform device ID table nor export > it as a module alias using MODULE_DEVICE_TABLE(). > I will add that. Thanks for your review. -Guodong > That means that if built as a module, it won't be autoloaded when the > "hi6421v530-regulator" device is registered by the MFD driver. > >> + >> +MODULE_AUTHOR("Wang Xiaoyin "); >> +MODULE_DESCRIPTION("Hi6421v530 regulator driver"); >> +MODULE_LICENSE("GPL v2"); > > Alternative you can add a MODULE_ALIAS(). > > Best regards, > Javier