aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/dc395x.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2007-10-02 21:55:29 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:53:18 -0400
commitd361db483241489fc4b37cd168c2ce7940a7845b (patch)
tree76550405f5de4a52c1a91c70e751a8ab59e9fd2c /drivers/scsi/dc395x.h
parent9a256fa50e9a9d6bd03e0d6e8eddce9dca4f15f2 (diff)
[SCSI] advansys: Sort out irq number mess
The interrupt number was being stored in 4-5 different places, each with its own type, rules and usage. Fix this by keeping an unsigned int in the struct asc_board, and filling it in from the bus probe functions (since it's different for each of the four bus types). In order to do this, we have to allocate the Scsi_Host in the bus probe functions too. Then we can return an error from advansys_board_found, which requires a little rearranging of code (and removing of the err_code variable). Move the Wide Board flag setting into the PCI bus probe function. Split the AscGetChipIRQ function into three functions (one for each bus type that needs it) and add some commentary to explain what's going on. Also get rid of the AscSetChipIRQ function as we only ever set the interrupt number to the same value it already had. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/dc395x.h')
0 files changed, 0 insertions, 0 deletions