eth: fix ethernet function failure

PD#143005: eth failed when suspend/resume

Change-Id: I119469b295f2f588a5f5952fbae3d6ececb082cc
Signed-off-by: Yizhou Jiang <yizhou.jiang@amlogic.com>
This commit is contained in:
Yizhou Jiang
2017-05-08 16:50:12 +08:00
committed by Jianxin Pan
parent 882c510212
commit 93a069a4d0

View File

@@ -36,7 +36,9 @@ static void meson6_dwmac_fix_mac_speed(void *priv, unsigned int speed)
{
struct meson_dwmac *dwmac = priv;
unsigned int val;
#ifdef CONFIG_AMLOGIC_ETH_PRIVE
return;
#endif
val = readl(dwmac->reg);
switch (speed) {