aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/jazz_esp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/jazz_esp.c')
-rw-r--r--drivers/scsi/jazz_esp.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/scsi/jazz_esp.c b/drivers/scsi/jazz_esp.c
index fcd304e11c26..fc031c76dade 100644
--- a/drivers/scsi/jazz_esp.c
+++ b/drivers/scsi/jazz_esp.c
@@ -52,7 +52,6 @@ static volatile unsigned char cmd_buffer[16];
52 * via PIO. 52 * via PIO.
53 */ 53 */
54 54
55int jazz_esp_detect(struct scsi_host_template *tpnt);
56static int jazz_esp_release(struct Scsi_Host *shost) 55static int jazz_esp_release(struct Scsi_Host *shost)
57{ 56{
58 if (shost->irq) 57 if (shost->irq)
@@ -75,7 +74,7 @@ static int jazz_esp_detect(struct scsi_host_template *tpnt)
75 * first assumption it is there:-) 74 * first assumption it is there:-)
76 */ 75 */
77 if (1) { 76 if (1) {
78 esp_dev = 0; 77 esp_dev = NULL;
79 esp = esp_allocate(tpnt, (void *) esp_dev); 78 esp = esp_allocate(tpnt, (void *) esp_dev);
80 79
81 /* Do command transfer with programmed I/O */ 80 /* Do command transfer with programmed I/O */
@@ -94,13 +93,13 @@ static int jazz_esp_detect(struct scsi_host_template *tpnt)
94 esp->dma_setup = &dma_setup; 93 esp->dma_setup = &dma_setup;
95 94
96 /* Optional functions */ 95 /* Optional functions */
97 esp->dma_barrier = 0; 96 esp->dma_barrier = NULL;
98 esp->dma_drain = 0; 97 esp->dma_drain = NULL;
99 esp->dma_invalidate = 0; 98 esp->dma_invalidate = NULL;
100 esp->dma_irq_entry = 0; 99 esp->dma_irq_entry = NULL;
101 esp->dma_irq_exit = 0; 100 esp->dma_irq_exit = NULL;
102 esp->dma_poll = 0; 101 esp->dma_poll = NULL;
103 esp->dma_reset = 0; 102 esp->dma_reset = NULL;
104 esp->dma_led_off = &dma_led_off; 103 esp->dma_led_off = &dma_led_off;
105 esp->dma_led_on = &dma_led_on; 104 esp->dma_led_on = &dma_led_on;
106 105
@@ -120,7 +119,7 @@ static int jazz_esp_detect(struct scsi_host_template *tpnt)
120 * of DMA channel, so we can use the jazz DMA functions 119 * of DMA channel, so we can use the jazz DMA functions
121 * 120 *
122 */ 121 */
123 esp->dregs = JAZZ_SCSI_DMA; 122 esp->dregs = (void *) JAZZ_SCSI_DMA;
124 123
125 /* ESP register base */ 124 /* ESP register base */
126 esp->eregs = (struct ESP_regs *)(JAZZ_SCSI_BASE); 125 esp->eregs = (struct ESP_regs *)(JAZZ_SCSI_BASE);