blob: 0567191cfc1637bd0ea4ca9eeef7a407bed90559 (
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
@@ -750,7 +750,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;
|