dmaengine: qcom_hidma: hide MSI handler when unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Nov 2016 13:48:59 +0000 (14:48 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 14 Nov 2016 05:23:52 +0000 (10:53 +0530)
commit8cc12b26b403611175c4f1aec13abc4e383897fb
tree67b6ee019ab51576e438f305a81d71ca81955670
parent87ffcea5530393e771ea34ba2e98986258e534f2
dmaengine: qcom_hidma: hide MSI handler when unused

The newly added MSI support causes a harmless warning when MSI
is disabled:

drivers/dma/qcom/hidma.c:558:20: error: 'hidma_chirq_handler_msi' defined but not used [-Werror=unused-function]

This adds another #ifdef to match that around the users of the function.

Fixes: 1c0e3e82a7fb ("dmaengine: qcom_hidma: add MSI support for interrupts")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/hidma.c