o drivers/net/wan/sdla*: use SET_MODULE_OWNER at net_device setup

parent 56d8e8cb
...@@ -1636,9 +1636,10 @@ int __init sdla_init(struct net_device *dev) ...@@ -1636,9 +1636,10 @@ int __init sdla_init(struct net_device *dev)
dev->change_mtu = sdla_change_mtu; dev->change_mtu = sdla_change_mtu;
dev->type = 0xFFFF; dev->type = 0xFFFF;
dev->hard_header_len = 0; dev->hard_header_len = 0;
dev->addr_len = 0; dev->addr_len = 0;
dev->mtu = SDLA_MAX_MTU; dev->mtu = SDLA_MAX_MTU;
SET_MODULE_OWNER(dev);
flp->activate = sdla_activate; flp->activate = sdla_activate;
flp->deactivate = sdla_deactivate; flp->deactivate = sdla_deactivate;
......
...@@ -914,7 +914,6 @@ static int if_init(struct net_device* dev) ...@@ -914,7 +914,6 @@ static int if_init(struct net_device* dev)
dev->get_stats = &if_stats; dev->get_stats = &if_stats;
dev->tx_timeout = &if_tx_timeout; dev->tx_timeout = &if_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT; dev->watchdog_timeo = TX_TIMEOUT;
/* Initialize media-specific parameters */ /* Initialize media-specific parameters */
dev->flags |= IFF_POINTOPOINT; dev->flags |= IFF_POINTOPOINT;
...@@ -951,6 +950,7 @@ static int if_init(struct net_device* dev) ...@@ -951,6 +950,7 @@ static int if_init(struct net_device* dev)
* by stack. * by stack.
*/ */
dev->tx_queue_len = 100; dev->tx_queue_len = 100;
SET_MODULE_OWNER(dev);
return 0; return 0;
} }
......
...@@ -1187,6 +1187,7 @@ static int if_init(struct net_device* dev) ...@@ -1187,6 +1187,7 @@ static int if_init(struct net_device* dev)
dev->base_addr = wandev->ioport; dev->base_addr = wandev->ioport;
dev->mem_start = wandev->maddr; dev->mem_start = wandev->maddr;
dev->mem_end = wandev->maddr + wandev->msize - 1; dev->mem_end = wandev->maddr + wandev->msize - 1;
SET_MODULE_OWNER(dev);
return 0; return 0;
} }
......
...@@ -722,6 +722,7 @@ static int if_init(struct net_device *dev) ...@@ -722,6 +722,7 @@ static int if_init(struct net_device *dev)
/* Set transmit buffer queue length */ /* Set transmit buffer queue length */
dev->tx_queue_len = 100; dev->tx_queue_len = 100;
SET_MODULE_OWNER(dev);
return 0; return 0;
} }
......
...@@ -1148,6 +1148,7 @@ static int if_init(struct net_device* dev) ...@@ -1148,6 +1148,7 @@ static int if_init(struct net_device* dev)
/* Set transmit buffer queue length */ /* Set transmit buffer queue length */
dev->tx_queue_len = 100; dev->tx_queue_len = 100;
SET_MODULE_OWNER(dev);
/* FIXME Why are we doing this */ /* FIXME Why are we doing this */
set_chan_state(dev, WAN_DISCONNECTED); set_chan_state(dev, WAN_DISCONNECTED);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment