Commit bdd5ac40 authored by Ondrej Zary's avatar Ondrej Zary Committed by Martin K. Petersen

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: default avatarOndrej Zary <>
Reviewed-by: default avatarHannes Reinicke <>
Acked-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarMartin K. Petersen <>
parent e1e9a706
This diff is collapsed.
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