Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc88055a authored by David S. Miller's avatar David S. Miller
Browse files

bnxt_en: Use SWITCHDEV_SET_OPS().



Suggested by Jakub Kicinski.

Fixes: c124a62f ("bnxt_en: add support for port_attr_get and and get_phys_port_name")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a248878d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -7894,7 +7894,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
	dev->netdev_ops = &bnxt_netdev_ops;
	dev->netdev_ops = &bnxt_netdev_ops;
	dev->watchdog_timeo = BNXT_TX_TIMEOUT;
	dev->watchdog_timeo = BNXT_TX_TIMEOUT;
	dev->ethtool_ops = &bnxt_ethtool_ops;
	dev->ethtool_ops = &bnxt_ethtool_ops;
	dev->switchdev_ops = &bnxt_switchdev_ops;
	SWITCHDEV_SET_OPS(dev, &bnxt_switchdev_ops);
	pci_set_drvdata(pdev, dev);
	pci_set_drvdata(pdev, dev);


	rc = bnxt_alloc_hwrm_resources(bp);
	rc = bnxt_alloc_hwrm_resources(bp);