]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: sun8i_emac: Fix build for non-H3/H5 SoCs
authorChen-Yu Tsai <wens@csie.org>
Fri, 22 Sep 2017 07:26:33 +0000 (15:26 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 10 Nov 2017 13:40:33 +0000 (19:10 +0530)
commit13ae2a40e7d458ad0c2961359c346578a305263d
tree0675557c844bf8f686bb7a6d37d303e8a5230571
parent60567a320f4a55f05ae94fbb34f7aac0dd4c8fea
net: sun8i_emac: Fix build for non-H3/H5 SoCs

Only the H3/H5 SoCs have an internal PHY and its related clock and
reset controls.

Use an #ifdef to guard the internal PHY control code block so it
can be built for other SoCs, such as the A83T or A64.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/net/sun8i_emac.c