Revision 3b25528e1e355c803e73aa326ce657b5606cda73 authored by Chen-Yu Tsai on 29 August 2019, 03:17:24 UTC, committed by David S. Miller on 30 August 2019, 21:16:26 UTC
The devicetree binding lists the phy phy as optional. As such, the
driver should not bail out if it can't find a regulator. Instead it
should just skip the remaining regulator related code and continue
on normally.

Skip the remainder of phy_power_on() if a regulator supply isn't
available. This also gets rid of the bogus return code.

Fixes: 2e12f536635f ("net: stmmac: dwmac-rk: Use standard devicetree property for phy regulator")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b6b4dc4
History
File Mode Size
lxdialog
tests
.gitignore -rw-r--r-- 97 bytes
Makefile -rw-r--r-- 7.1 KB
conf.c -rw-r--r-- 14.9 KB
confdata.c -rw-r--r-- 27.7 KB
expr.c -rw-r--r-- 29.9 KB
expr.h -rw-r--r-- 9.7 KB
gconf-cfg.sh -rwxr-xr-x 733 bytes
gconf.c -rw-r--r-- 38.1 KB
gconf.glade -rw-r--r-- 25.0 KB
images.c -rw-r--r-- 6.3 KB
images.h -rw-r--r-- 752 bytes
lexer.l -rw-r--r-- 9.1 KB
list.h -rw-r--r-- 3.7 KB
lkc.h -rw-r--r-- 3.8 KB
lkc_proto.h -rw-r--r-- 2.4 KB
mconf-cfg.sh -rwxr-xr-x 1.1 KB
mconf.c -rw-r--r-- 27.3 KB
menu.c -rw-r--r-- 21.4 KB
merge_config.sh -rwxr-xr-x 4.7 KB
nconf-cfg.sh -rwxr-xr-x 1.2 KB
nconf.c -rw-r--r-- 38.1 KB
nconf.gui.c -rw-r--r-- 14.8 KB
nconf.h -rw-r--r-- 1.8 KB
parser.y -rw-r--r-- 15.1 KB
preprocess.c -rw-r--r-- 11.0 KB
qconf-cfg.sh -rwxr-xr-x 846 bytes
qconf.cc -rw-r--r-- 44.2 KB
qconf.h -rw-r--r-- 7.4 KB
streamline_config.pl -rwxr-xr-x 16.2 KB
symbol.c -rw-r--r-- 29.1 KB
util.c -rw-r--r-- 2.2 KB

back to top