[PATCH 2/2][RFC] Update e100 driver to use devres.

2007-07-24 Thread bphilips
devres manages device resources and is currently used by all libata low level drivers. It can greatly reduce the complexity of the error handling on probe and the device removal functions. For example the e100_free() function and all of the gotos in e100_probe have been removed. Also, e100_remo

[PATCH 1/2][RFC] Update net core to use devres.

2007-07-24 Thread bphilips
* netdev_pci_remove_one() can replace simple pci device remove functions * devm_alloc_netdev() is like alloc_netdev but allocates memory using devres. alloc_netdev() can be removed once all drivers use devres. Applies against 2.6.22 Signed-off-by: Brandon Philips <[EMAIL PROTECTED]> --- in

[PATCH 0/2][RFC] Update network drivers to use devres

2007-07-24 Thread bphilips
These patches update the network driver core and the e100 driver to use devres. Devres is a simple resource manager for device drivers, see Documentation/driver-model/devres.txt for more information. If the RFC goes well I will create patches to update all applicable network drivers. Applies agai