[SCSI] ufs: SCSI_UFSHCD should depend on SCSI_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 14 May 2013 16:04:14 +0000 (21:34 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 4 Jun 2013 18:16:20 +0000 (11:16 -0700)
If NO_DMA=y:

drivers/built-in.o: In function `ufshcd_transfer_req_compl':
drivers/scsi/ufs/ufshcd.c:1182: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_map_sg':
drivers/scsi/ufs/ufshcd.c:377: undefined reference to `scsi_dma_map'
drivers/built-in.o: In function `ufshcd_do_reset':
drivers/scsi/ufs/ufshcd.c:912: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_memory_alloc':
drivers/scsi/ufs/ufshcd.c:565: undefined reference to `dma_alloc_coherent'
drivers/built-in.o: In function `ufshcd_free_hba_memory':
drivers/scsi/ufs/ufshcd.c:185: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:192: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:199: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:185: undefined reference to `dma_free_coherent'
drivers/scsi/ufs/ufshcd.c:192: undefined reference to `dma_free_coherent'
drivers/built-in.o:drivers/scsi/ufs/ufshcd.c:199: more undefined references to `dma_free_coherent' follow
drivers/built-in.o: In function `ufshcd_abort':
drivers/scsi/ufs/ufshcd.c:1498: undefined reference to `scsi_dma_unmap'
drivers/built-in.o: In function `ufshcd_device_reset':
drivers/scsi/ufs/ufshcd.c:1436: undefined reference to `scsi_dma_unmap'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ufs/Kconfig

index 35faf24c604401eeb560472542cd2ed350289d10..f07f90179bbca6f3a1c046a5691fef9028648c4d 100644 (file)
@@ -34,7 +34,7 @@
 
 config SCSI_UFSHCD
        tristate "Universal Flash Storage Controller Driver Core"
-       depends on SCSI
+       depends on SCSI && SCSI_DMA
        ---help---
        This selects the support for UFS devices in Linux, say Y and make
          sure that you know the name of your UFS host adapter (the card