ethernet: stmmac: dwmac-rk-tool: Fix compilation error when CONFIG_DWMAC_ROCKCHIP=m
ERROR: modpost: "stmmac_reset" [drivers/net/ethernet/stmicro/stmmac/dwmac-rockchip.ko] undefined! Change-Id: I1dc4d3dc7f038d7a53524eaa50fac16db7e7480b Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
@@ -1073,7 +1073,7 @@ static int dwmac_rk_init_dma_engine(struct stmmac_priv *priv,
|
|||||||
u32 chan = 0;
|
u32 chan = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
ret = stmmac_reset(priv, priv->ioaddr);
|
ret = stmmac_do_callback(priv, dma, reset, priv->ioaddr);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(priv->device, "Failed to reset the dma\n");
|
dev_err(priv->device, "Failed to reset the dma\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user