aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-26 18:01:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-26 18:01:07 +0000
commitf5d23c51b3a2c7f62e0e16762aa2c908dcad8175 (patch)
tree4d32fe94126a271389e6781db8a3136c56e0ddfa /target/linux/cns3xxx
parentdae2f6208089b52df18dc28b74f4281dac00473c (diff)
downloadupstream-f5d23c51b3a2c7f62e0e16762aa2c908dcad8175.tar.gz
upstream-f5d23c51b3a2c7f62e0e16762aa2c908dcad8175.tar.bz2
upstream-f5d23c51b3a2c7f62e0e16762aa2c908dcad8175.zip
cns3xxx: set base device for ethernet port netdevs
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43395 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx')
-rw-r--r--target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
index b17af7f4c7..e2db636871 100644
--- a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
+++ b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c
@@ -1256,6 +1256,7 @@ static int eth_init_one(struct platform_device *pdev)
temp |= (PORT_DISABLE | PORT_BLOCK_STATE | PORT_LEARN_DIS);
__raw_writel(temp, &sw->regs->mac_cfg[port->id]);
+ SET_NETDEV_DEV(dev, &pdev->dev);
dev->netdev_ops = &cns3xxx_netdev_ops;
dev->ethtool_ops = &cns3xxx_ethtool_ops;
dev->tx_queue_len = 1000;