[SCSI] minor bug fixes and cleanups
BusLogic: use kzalloc(), remove cast to/from void* aic7xxx_old: fix typo in cast NCR53c406a: ifdef out static built code fd_mcs: ifdef out static built code ncr53c8xx: ifdef out static built code Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:

committed by
James Bottomley

parent
bf4713418b
commit
db3a8815fb
@@ -220,9 +220,11 @@ static void *addresses[] = {
|
||||
static unsigned short ports[] = { 0x230, 0x330, 0x280, 0x290, 0x330, 0x340, 0x300, 0x310, 0x348, 0x350 };
|
||||
#define PORT_COUNT ARRAY_SIZE(ports)
|
||||
|
||||
#ifndef MODULE
|
||||
/* possible interrupt channels */
|
||||
static unsigned short intrs[] = { 10, 11, 12, 15 };
|
||||
#define INTR_COUNT ARRAY_SIZE(intrs)
|
||||
#endif /* !MODULE */
|
||||
|
||||
/* signatures for NCR 53c406a based controllers */
|
||||
#if USE_BIOS
|
||||
@@ -605,6 +607,7 @@ static int NCR53c406a_release(struct Scsi_Host *shost)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
/* called from init/main.c */
|
||||
static int __init NCR53c406a_setup(char *str)
|
||||
{
|
||||
@@ -661,6 +664,8 @@ static int __init NCR53c406a_setup(char *str)
|
||||
|
||||
__setup("ncr53c406a=", NCR53c406a_setup);
|
||||
|
||||
#endif /* !MODULE */
|
||||
|
||||
static const char *NCR53c406a_info(struct Scsi_Host *SChost)
|
||||
{
|
||||
DEB(printk("NCR53c406a_info called\n"));
|
||||
|
Reference in New Issue
Block a user