net: ks8851: Don't use regulator_get_optional()
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 28 May 2014 20:11:12 +0000 (13:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 02:47:27 +0000 (19:47 -0700)
commit2a82e40d6b66373498bf937e31b249f17dc1105a
treebaceecc696833163389a53d9672ce8a23cfdf71a
parentb07166b26e6974d5b7072eff75d773ef6f0c5ba3
net: ks8851: Don't use regulator_get_optional()

We shouldn't be using regulator_get_optional() here. These
regulators are always present as part of the physical design and
there isn't any way to use an internal regulator or change the
source of the reference voltage via software. Given that the only
users of this driver in the kernel are DT based, this change
should be transparent to them even if they don't specify any
supplies because the regulator framework will insert dummy
supplies as needed.

Cc: Nishanth Menon <nm@ti.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Mark Brown <broonie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c