mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[SCSI] jazz_esp: Fix sparse warnings.
Using plain integer as NULL pointer. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
0320503dce
commit
ae198df377
1 changed files with 9 additions and 9 deletions
|
@ -95,7 +95,7 @@ static int jazz_esp_detect(struct scsi_host_template *tpnt)
|
||||||
* first assumption it is there:-)
|
* first assumption it is there:-)
|
||||||
*/
|
*/
|
||||||
if (1) {
|
if (1) {
|
||||||
esp_dev = 0;
|
esp_dev = NULL;
|
||||||
esp = esp_allocate(tpnt, (void *) esp_dev);
|
esp = esp_allocate(tpnt, (void *) esp_dev);
|
||||||
|
|
||||||
/* Do command transfer with programmed I/O */
|
/* Do command transfer with programmed I/O */
|
||||||
|
@ -114,13 +114,13 @@ static int jazz_esp_detect(struct scsi_host_template *tpnt)
|
||||||
esp->dma_setup = &dma_setup;
|
esp->dma_setup = &dma_setup;
|
||||||
|
|
||||||
/* Optional functions */
|
/* Optional functions */
|
||||||
esp->dma_barrier = 0;
|
esp->dma_barrier = NULL;
|
||||||
esp->dma_drain = 0;
|
esp->dma_drain = NULL;
|
||||||
esp->dma_invalidate = 0;
|
esp->dma_invalidate = NULL;
|
||||||
esp->dma_irq_entry = 0;
|
esp->dma_irq_entry = NULL;
|
||||||
esp->dma_irq_exit = 0;
|
esp->dma_irq_exit = NULL;
|
||||||
esp->dma_poll = 0;
|
esp->dma_poll = NULL;
|
||||||
esp->dma_reset = 0;
|
esp->dma_reset = NULL;
|
||||||
esp->dma_led_off = &dma_led_off;
|
esp->dma_led_off = &dma_led_off;
|
||||||
esp->dma_led_on = &dma_led_on;
|
esp->dma_led_on = &dma_led_on;
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ static int jazz_esp_detect(struct scsi_host_template *tpnt)
|
||||||
* of DMA channel, so we can use the jazz DMA functions
|
* of DMA channel, so we can use the jazz DMA functions
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
esp->dregs = JAZZ_SCSI_DMA;
|
esp->dregs = (void *) JAZZ_SCSI_DMA;
|
||||||
|
|
||||||
/* ESP register base */
|
/* ESP register base */
|
||||||
esp->eregs = (struct ESP_regs *)(JAZZ_SCSI_BASE);
|
esp->eregs = (struct ESP_regs *)(JAZZ_SCSI_BASE);
|
||||||
|
|
Loading…
Reference in a new issue