From 8c136e6b56d4bdd638443258b6de485fdd59fff5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 26 Nov 2014 18:01:07 +0000 Subject: [PATCH] cns3xxx: set base device for ethernet port netdevs Signed-off-by: Felix Fietkau SVN-Revision: 43395 --- .../cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c | 1 + 1 file changed, 1 insertion(+) 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 b17af7f4c7b..e2db6368714 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; -- 2.30.2