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

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
...@@ -1588,6 +1588,7 @@ static int bgmac_probe(struct bcma_device *core) ...@@ -1588,6 +1588,7 @@ static int bgmac_probe(struct bcma_device *core)
bgmac->net_dev = net_dev; bgmac->net_dev = net_dev;
bgmac->core = core; bgmac->core = core;
bcma_set_drvdata(core, bgmac); bcma_set_drvdata(core, bgmac);
SET_NETDEV_DEV(net_dev, &core->dev);
/* Defaults */ /* Defaults */
memcpy(bgmac->net_dev->dev_addr, mac, ETH_ALEN); memcpy(bgmac->net_dev->dev_addr, mac, ETH_ALEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment