Author: nbd Date: 2014-11-26 19:01:07 +0100 (Wed, 26 Nov 2014) New Revision: 43395
Modified: trunk/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c Log: cns3xxx: set base device for ethernet port netdevs Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c =================================================================== --- trunk/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c 2014-11-26 18:00:52 UTC (rev 43394) +++ trunk/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c 2014-11-26 18:01:07 UTC (rev 43395) @@ -1256,6 +1256,7 @@ 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; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
