commit | bdd5ac4065dbc2bb1478ae0c9205a651487c7432 | [log] [tgz] |
---|---|---|
author | Ondrej Zary <linux@rainbow-software.org> | Tue Nov 17 19:24:17 2015 +0100 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Wed Nov 25 22:08:48 2015 -0500 |
tree | 93ba4b17548f4a6c014d5c4bfcac8a7c651fd26e | |
parent | e1e9a70642309020571a07b2918eca84cec6287a [diff] |
atp870u: Improve _probe() Move scsi_host_alloc() to the top of _probe() to remove code duplication, *p and unneeded atpdev (de)allocation and copying. While at it, fix the error paths to return real error codes and also add missing pci_disble_device() call. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Hannes Reinicke <hare@suse.de> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>