Re: [patch 3/5][RFC] Update e100 driver to use devres.

2007-08-03 Thread Tejun Heo
On Thu, Aug 02, 2007 at 03:45:37PM -0700, Brandon Philips wrote: > if((err = pci_request_regions(pdev, DRV_NAME))) { > DPRINTK(PROBE, ERR, "Cannot obtain PCI resources, aborting.\n"); > - goto err_out_disable_pdev; > + return err; > } > > if

[patch 3/5][RFC] Update e100 driver to use devres.

2007-08-02 Thread Brandon Philips
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