From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH v2 2/4] regulator: pass device_node to of_get_regulator_init_data() Date: Mon, 5 Dec 2011 19:28:41 +0000 Message-ID: <20111205192841.GF7467@opensource.wolfsonmicro.com> References: <1322731268-12158-1-git-send-email-shawn.guo@linaro.org> <1322731268-12158-3-git-send-email-shawn.guo@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1322731268-12158-3-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Shawn Guo Cc: Sascha Hauer , Samuel Ortiz , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Liam Girdwood , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, Dec 01, 2011 at 05:21:06PM +0800, Shawn Guo wrote: > It's not always true that the device_node of regulator can be found > at dev->of_node at the time when of_get_regulator_init_data() is being > called, because in some cases the regulator nodes in device tree do > not have 'struct device' behind them until regulator_dev gets created > for it by core function regulator_register(). Applied, thanks.