Skip to content
  • Arnd Bergmann's avatar
    pas16: don't call free_dma() · 6ea8631d
    Arnd Bergmann authored
    
    
    The pas16 scsi driver does not use DMA, and the call to free_dma()
    in its exit function seems to have been copied incorrectly from
    another driver but never caused trouble.
    
    One case where it gets in the way is randconfig builds on ARM,
    which depending on the configuration does not provide a free_dma()
    function, causing this build error:
    
    drivers/scsi/pas16.c: In function 'pas16_release':
    drivers/scsi/pas16.c:611:3: error: implicit declaration of function 'free_dma' [-Werror=implicit-function-declaration]
       free_dma(shost->dma_channel);
    
    Removing the incorrect function calls should be the obvious
    fix for this, with no downsides.
    
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Reviewed-by: default avatarFinn Thain <fthain@telegraphics.com.au>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    6ea8631d