net: sunxi: Fix not calling dev_xxx with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:44:59 +0000 (10:44 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:22 +0000 (08:53 -0400)
There's no dev to log with, so pass the device along with the priv data.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/net/sunxi_emac.c

index df18ecc06450bfb5f83b0a76672990995d04dd4e..8e66ce246112f2fbfc82c8590e879c0a0a45cac6 100644 (file)
@@ -505,7 +505,8 @@ static int _sunxi_emac_eth_send(struct emac_eth_dev *priv, void *packet,
        return 0;
 }
 
-static int sunxi_emac_board_setup(struct emac_eth_dev *priv)
+static int sunxi_emac_board_setup(struct udevice *dev,
+                                 struct emac_eth_dev *priv)
 {
        struct sunxi_sramc_regs *sram =
                (struct sunxi_sramc_regs *)SUNXI_SRAMC_BASE;
@@ -576,7 +577,7 @@ static int sunxi_emac_eth_probe(struct udevice *dev)
                return ret;
        }
 
-       ret = sunxi_emac_board_setup(priv);
+       ret = sunxi_emac_board_setup(dev, priv);
        if (ret)
                return ret;