mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user