Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2022e9d5 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

bgmac: Bind net_device with backing device structure



In preparation for allowing different helpers to be utilized against
network devices created by the bgmac driver, make sure that we bind the
net_device with core->dev.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d84e37e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1588,6 +1588,7 @@ static int bgmac_probe(struct bcma_device *core)
	bgmac->net_dev = net_dev;
	bgmac->core = core;
	bcma_set_drvdata(core, bgmac);
	SET_NETDEV_DEV(net_dev, &core->dev);

	/* Defaults */
	memcpy(bgmac->net_dev->dev_addr, mac, ETH_ALEN);