Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934064AbdCWQbM (ORCPT ); Thu, 23 Mar 2017 12:31:12 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37514 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933634AbdCWQbK (ORCPT ); Thu, 23 Mar 2017 12:31:10 -0400 Date: Thu, 23 Mar 2017 16:31:05 +0000 From: Lee Jones To: Jeremy Linton Cc: linux-kernel@vger.kernel.org, broonie@kernel.org, lgirdwood@gmail.com, puck.chen@hisilicon.com Subject: Re: [PATCH 1/2] mfd: hi655x: Reference required regulator driver Message-ID: <20170323163105.gowbe7p45uak7cyd@dell> References: <20170321045341.4833-1-lintonrjeremy@gmail.com> <20170321045341.4833-2-lintonrjeremy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170321045341.4833-2-lintonrjeremy@gmail.com> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 33 On Mon, 20 Mar 2017, Jeremy Linton wrote: > The hisi pmic requires an independent regulator driver to be > loaded so that devices dependent on the pmic/regulator are > started properly. Currently there is only a single compatible > regulator driver in the tree, so reference it with a module soft > dependency so that modprobe loads it whenever the hisi pmic > driver is loaded. This is a new one on my, but it sounds okay. OOI, what happens when there are lots of compatible drivers? > Signed-off-by: Jeremy Linton > --- > drivers/mfd/hi655x-pmic.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c > index ba706ad..56e027d 100644 > --- a/drivers/mfd/hi655x-pmic.c > +++ b/drivers/mfd/hi655x-pmic.c > @@ -184,3 +184,4 @@ module_platform_driver(hi655x_pmic_driver); > MODULE_AUTHOR("Chen Feng "); > MODULE_DESCRIPTION("Hisilicon hi655x PMIC driver"); > MODULE_LICENSE("GPL v2"); > +MODULE_SOFTDEP("post: hi655x-regulator"); -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog