summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/0001-netdev_ops/mwifiex.patch
blob: 3b05f25bda0fa0123c5c54de683043d5afd1964f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -794,7 +794,7 @@ static const struct net_device_ops mwifi
 void mwifiex_init_priv_params(struct mwifiex_private *priv,
 						struct net_device *dev)
 {
-	dev->netdev_ops = &mwifiex_netdev_ops;
+	netdev_attach_ops(dev, &mwifiex_netdev_ops);
 	dev->destructor = free_netdev;
 	/* Initialize private structure */
 	priv->current_key_index = 0;