diff options
Diffstat (limited to 'drivers/scsi/advansys.c')
-rw-r--r-- | drivers/scsi/advansys.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 07507a7e9c50..9dd3952516c5 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c | |||
@@ -120,7 +120,7 @@ typedef unsigned char uchar; | |||
120 | #define CC_VERY_LONG_SG_LIST 0 | 120 | #define CC_VERY_LONG_SG_LIST 0 |
121 | #define ASC_SRB2SCSIQ(srb_ptr) (srb_ptr) | 121 | #define ASC_SRB2SCSIQ(srb_ptr) (srb_ptr) |
122 | 122 | ||
123 | #define PortAddr unsigned short /* port address size */ | 123 | #define PortAddr unsigned int /* port address size */ |
124 | #define inp(port) inb(port) | 124 | #define inp(port) inb(port) |
125 | #define outp(port, byte) outb((byte), (port)) | 125 | #define outp(port, byte) outb((byte), (port)) |
126 | 126 | ||
@@ -13333,8 +13333,8 @@ static int __devinit advansys_wide_init_chip(struct Scsi_Host *shost) | |||
13333 | 13333 | ||
13334 | } | 13334 | } |
13335 | 13335 | ||
13336 | ASC_DBG(1, "sg_cnt %d * %u = %u bytes\n", sg_cnt, sizeof(adv_sgblk_t), | 13336 | ASC_DBG(1, "sg_cnt %d * %lu = %lu bytes\n", sg_cnt, sizeof(adv_sgblk_t), |
13337 | (unsigned)(sizeof(adv_sgblk_t) * sg_cnt)); | 13337 | sizeof(adv_sgblk_t) * sg_cnt); |
13338 | 13338 | ||
13339 | if (!board->adv_sgblkp) | 13339 | if (!board->adv_sgblkp) |
13340 | goto kmalloc_failed; | 13340 | goto kmalloc_failed; |
@@ -13428,9 +13428,9 @@ static int __devinit advansys_board_found(struct Scsi_Host *shost, | |||
13428 | boardp->ioremap_addr = ioremap(pci_resource_start(pdev, 1), | 13428 | boardp->ioremap_addr = ioremap(pci_resource_start(pdev, 1), |
13429 | boardp->asc_n_io_port); | 13429 | boardp->asc_n_io_port); |
13430 | if (!boardp->ioremap_addr) { | 13430 | if (!boardp->ioremap_addr) { |
13431 | shost_printk(KERN_ERR, shost, "ioremap(%x, %d) " | 13431 | shost_printk(KERN_ERR, shost, "ioremap(%lx, %d) " |
13432 | "returned NULL\n", | 13432 | "returned NULL\n", |
13433 | pci_resource_start(pdev, 1), | 13433 | (long)pci_resource_start(pdev, 1), |
13434 | boardp->asc_n_io_port); | 13434 | boardp->asc_n_io_port); |
13435 | ret = -ENODEV; | 13435 | ret = -ENODEV; |
13436 | goto err_shost; | 13436 | goto err_shost; |