[parisc-linux-cvs] 64-bit cleanup of lasi7xx.c

Ryan Bradetich rbradetich@uswest.net
Fri, 02 Mar 2001 22:11:27 -0700


Here is a patch that removes compile warnings and passes the correct
address
(64-bit instead of 32-bit) to the sim700 driver.

- Ryan

Index: drivers/scsi/lasi7xx.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/scsi/lasi7xx.c,v
retrieving revision 1.13
diff -u -p -r1.13 lasi7xx.c
--- lasi7xx.c 2000/09/28 07:00:03 1.13
+++ lasi7xx.c 2001/03/03 05:04:04
@@ -42,15 +42,12 @@
 static Scsi_Host_Template *hosts_tptr;
 static int hosts_used=0;

-static u8 iodc_data[32] __attribute__ ((aligned (64)));
-static unsigned long pdc_result[32] __attribute__ ((aligned (16)))
={0,0,0,0};
-
 static int lasi_scsi_callback_700(struct hp_device *d, struct
pa_iodc_driver *dri);
 static int lasi_scsi_callback_710(struct hp_device *d, struct
pa_iodc_driver *dri);

 extern int sim700_init_host(Scsi_Host_Template *tpnt,
                     int chip,
-      u32 base_addr,
+      unsigned long base_addr,
       int irq_vector,
       u32 options
       );
@@ -91,7 +88,7 @@ static int
 lasi_scsi_callback_700(struct hp_device *d, struct pa_iodc_driver *dri)

 {
  hosts_used = sim700_init_host(hosts_tptr, 700,
-   (u32)d->hpa + LASI_SCSI_CORE_OFFSET,
+   (unsigned long)d->hpa + LASI_SCSI_CORE_OFFSET,
    busdevice_alloc_irq(d), OPT_NCR_LE);

  return (hosts_used == 0);
@@ -101,7 +98,7 @@ static int
 lasi_scsi_callback_710(struct hp_device *d, struct pa_iodc_driver *dri)

 {
  hosts_used = sim700_init_host(hosts_tptr, 710,
-   (u32)d->hpa + LASI_SCSI_CORE_OFFSET,
+   (unsigned long)d->hpa + LASI_SCSI_CORE_OFFSET,
    busdevice_alloc_irq(d), 0);

  return (hosts_used == 0);