]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-rk: Use standard devicetree property for phy regulator
authorRomain Perier <romain.perier@gmail.com>
Tue, 20 Jan 2015 07:09:39 +0000 (07:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 01:17:07 +0000 (17:17 -0800)
commitea3e922800ea57e2649fda72540d749ae45dfdac
tree64368f4f14fd9a2c461f0ab52e0eff8037fb77e0
parentc34068742d0a466a75b6f3fe19ece5e22c6adf0b
net: stmmac: dwmac-rk: Use standard devicetree property for phy regulator

Currently, dwmac-rk uses a custom propety "phy_regulator" to get the name of the
right regulator to use to power on or power off the phy. This commit converts the
driver to use phy-supply devicetree property and the corresponding API, it cleans
the code a bit and make it simpler to maintain. This also replaces the property
phy_regulator by the standard property phy-supply in rk3288-evb-rk808.dts.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/rk3288-evb-rk808.dts
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c