From: Andrew Bresticker Date: Thu, 4 Apr 2013 22:27:47 +0000 (-0700) Subject: regulator: core: don't require a supply when supply_name is specified X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~131^2~21^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f7b87f0acc04e4f22ec5d3f2283a80993ca3aa8;p=pandora-kernel.git regulator: core: don't require a supply when supply_name is specified Regulator drivers may specify regulator_desc->supply_name which regulator_register() will use to find the supply node for a regulator. If no supply was specified in the device tree or the supply has yet to be registered regulator_register() will fail, deferring the probe of the regulator. In the case where no supply node was specified in the device tree, there is no supply and it is pointless to try and find one later, so go ahead and add the regulator without the supply. Signed-off-by: Andrew Bresticker Signed-off-by: Mark Brown --- Reading git-diff-tree failed