aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fdomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/fdomain.c')
-rw-r--r--drivers/scsi/fdomain.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index 7334244397d1..e16013f0ad6e 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -420,10 +420,10 @@ static unsigned long addresses[] = {
420 0xd0000, 420 0xd0000,
421 0xe0000, 421 0xe0000,
422}; 422};
423#define ADDRESS_COUNT (sizeof( addresses ) / sizeof( unsigned )) 423#define ADDRESS_COUNT ARRAY_SIZE(addresses)
424 424
425static unsigned short ports[] = { 0x140, 0x150, 0x160, 0x170 }; 425static unsigned short ports[] = { 0x140, 0x150, 0x160, 0x170 };
426#define PORT_COUNT (sizeof( ports ) / sizeof( unsigned short )) 426#define PORT_COUNT ARRAY_SIZE(ports)
427 427
428static unsigned short ints[] = { 3, 5, 10, 11, 12, 14, 15, 0 }; 428static unsigned short ints[] = { 3, 5, 10, 11, 12, 14, 15, 0 };
429 429
@@ -502,7 +502,7 @@ static struct signature {
502 geometry location are verified). */ 502 geometry location are verified). */
503}; 503};
504 504
505#define SIGNATURE_COUNT (sizeof( signatures ) / sizeof( struct signature )) 505#define SIGNATURE_COUNT ARRAY_SIZE(signatures)
506 506
507static void print_banner( struct Scsi_Host *shpnt ) 507static void print_banner( struct Scsi_Host *shpnt )
508{ 508{
@@ -519,7 +519,7 @@ static void print_banner( struct Scsi_Host *shpnt )
519 519
520 if (bios_minor >= 0) printk("%d", bios_minor); 520 if (bios_minor >= 0) printk("%d", bios_minor);
521 else printk("?."); 521 else printk("?.");
522 522
523 printk( " at 0x%lx using scsi id %d\n", 523 printk( " at 0x%lx using scsi id %d\n",
524 bios_base, shpnt->this_id ); 524 bios_base, shpnt->this_id );
525 } 525 }