diff options
Diffstat (limited to 'drivers/scsi/advansys.c')
-rw-r--r-- | drivers/scsi/advansys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 5e6bcf2e5d15..a5bb4e416bea 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c | |||
@@ -2232,7 +2232,6 @@ do { \ | |||
2232 | #define ASC_IS_WIDE_BOARD 0x04 /* AdvanSys Wide Board */ | 2232 | #define ASC_IS_WIDE_BOARD 0x04 /* AdvanSys Wide Board */ |
2233 | 2233 | ||
2234 | #define ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0) | 2234 | #define ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0) |
2235 | #define ASC_WIDE_BOARD(boardp) ((boardp)->flags & ASC_IS_WIDE_BOARD) | ||
2236 | 2235 | ||
2237 | #define NO_ISA_DMA 0xff /* No ISA DMA Channel Used */ | 2236 | #define NO_ISA_DMA 0xff /* No ISA DMA Channel Used */ |
2238 | 2237 | ||
@@ -4385,7 +4384,7 @@ advansys_proc_info(struct Scsi_Host *shost, char *buffer, char **start, | |||
4385 | /* | 4384 | /* |
4386 | * Display Wide Board BIOS Information. | 4385 | * Display Wide Board BIOS Information. |
4387 | */ | 4386 | */ |
4388 | if (ASC_WIDE_BOARD(boardp)) { | 4387 | if (!ASC_NARROW_BOARD(boardp)) { |
4389 | cp = boardp->prtbuf; | 4388 | cp = boardp->prtbuf; |
4390 | cplen = asc_prt_adv_bios(shost, cp, ASC_PRTBUF_SIZE); | 4389 | cplen = asc_prt_adv_bios(shost, cp, ASC_PRTBUF_SIZE); |
4391 | BUG_ON(cplen >= ASC_PRTBUF_SIZE); | 4390 | BUG_ON(cplen >= ASC_PRTBUF_SIZE); |
@@ -14432,7 +14431,7 @@ static int advansys_release(struct Scsi_Host *shost) | |||
14432 | ASC_DBG(1, "advansys_release: free_dma()\n"); | 14431 | ASC_DBG(1, "advansys_release: free_dma()\n"); |
14433 | free_dma(shost->dma_channel); | 14432 | free_dma(shost->dma_channel); |
14434 | } | 14433 | } |
14435 | if (ASC_WIDE_BOARD(boardp)) { | 14434 | if (!ASC_NARROW_BOARD(boardp)) { |
14436 | iounmap(boardp->ioremap_addr); | 14435 | iounmap(boardp->ioremap_addr); |
14437 | advansys_wide_free_mem(boardp); | 14436 | advansys_wide_free_mem(boardp); |
14438 | } | 14437 | } |