- 10 Jan, 2004 40 commits
-
-
Alexander Viro authored
Remaining kfree -> free_netdev replacements (easy part of free_netdev() fixes)
-
Alexander Viro authored
isa-skeleton.c got the same changes as actual ISA drivers - dynamic allocation, leak fixes, clobbering fixes, fix for IO-before-request_region().
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
Plugged a bunch of leaks in sbni. Replaced check_region() with intended request_region() in pci probe (BTW, that bugger should be turned into normal PCI driver at some point).
-
Alexander Viro authored
Sane allocation in sv11. Switched it to SET_MODULE_OWNER(), while we are at it. Fixed a leak on exit and destroy-before-unregister race.
-
Alexander Viro authored
-
Alexander Viro authored
Now we can kill the embedding of net_device into hdlc_device. Indeed, all instances of hdlc_device are created by alloc_hdlcdev() and nothing uses hdlc->netdev directly. So we can * remove hdlc->netdev * have alloc_hdlcdev() implemented via alloc_netdev() with the rest of hdlc_device as private part of net_device. * replace free_hdlcdev() with free_netdev(). * have dev_to_hdlc(dev) simply return netdev_priv(dev).
-
Alexander Viro authored
No more users, we may remove it.
-
Alexander Viro authored
Killed embedded hdlc in dscc4 (same as for other drivers). Fixed a setup-after-registration race. That was the last user of hdlc_to_dev(); killed.
-
Alexander Viro authored
Removed embedded hdlc in farsync (same as for wanxl and friends). setup-after-registration race fixed.
-
Alexander Viro authored
-
Alexander Viro authored
Killed embedded hdlc in hd6457x.c derivatives (same as wanxl in previous patch)
-
Alexander Viro authored
New field in hdlc_device: void *priv; New helpers: struct net_device *alloc_hdlcdev(priv) allocates hdlc, sets ->priv and returns pointer to hdlc->netdev free_hdlcdev(dev) takes such pointer and frees its hdlc. wanxl switched to use of those; instead of embedding hdlc into card->ports[] we allocate it separately right after card had been allocated and store pointer to hdlc->netdev in card->ports[]->dev. Freeing is done just before freeing card. Pointer back to card->ports[] is stored in hdlc->priv. port_to_dev() and dev_to_port() rewritten in the obvious way; by now the rest of driver doesn't care whether hdlc is embedded or not - everything uses port_to_dev() and dev_to_port(). That killed embedded hdlc replacing it with pointer to net_device. Fairly similar work will be done in the next few patches for other drivers. Additionally, setup-after-register and free_irq()-before-unregister races had been fixed.
-
Alexander Viro authored
register_hdlc_device()/unregister_hdlc_device() switched to net_device. Now all remaining callers of hdlc_to_dev() are isolated and we can start killing them.
-
Alexander Viro authored
-
Alexander Viro authored
New inlined helper - hdlc_stats(). A lot of places had it spelled out; replaced with calls.
-
Alexander Viro authored
In pc300 replaced dev->hdlc with dev->dev (hdlc to net_device). Killed a bunch of ugliness in pc300_tty.c, killed hdlc_to_dev() uses.
-
Alexander Viro authored
Switched remaining ioctls to net_device, killed a bunch of hdlc_to_dev() and killed hdlc_to_name().
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
Eliminated a bunch of ->netdev and hdlc_to_dev() uses.
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
-
Alexander Viro authored
More hd6457x.c massage: sca_open(), sca_close(), sca_dump_rings() switched to net_device. Bunch of hdlc_to_port() eliminated in favor of dev_to_port().
-
Alexander Viro authored
New helper in hd6457x.c: port_to_dev(). A bunch of port->hdlc eliminated.
-
Alexander Viro authored
-
Alexander Viro authored
Beginning of hdlc fixes. hdlc_open() switched from hdlc_device to net_device.
-
Alexander Viro authored
Nothing is using lapb->token anymore; removed, along with the old "token" argument of lapb_register().
-
Alexander Viro authored
-
Alexander Viro authored
lapb functions that used to take a token to select lapb_cb they'll deal with are switched to getting net_device instead. Callbacks switched to using lapb->dev instead of lapb->token.
-
Alexander Viro authored
Beginning of lapb cleanups: lapb_register gets net_device along with the "token" and it gets stored in lapb_cb (token argument will die later).
-
Andrew Morton authored
-