]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: edma: fix build without CONFIG_OF
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 Nov 2015 14:00:57 +0000 (15:00 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 03:35:31 +0000 (09:05 +0530)
commite0490e70f79fa2986a3cd7b99bcc883bf6e74f5e
tree23d11f5dbc6a83bc2db1209839ce62b5d9b83516
parentf7c710d8486539c6510c5500e9edae2c52a19553
dmaengine: edma: fix build without CONFIG_OF

During the edma rework, a build error was introduced for the
case that CONFIG_OF is disabled:

drivers/built-in.o: In function `edma_tc_set_pm_state':
:(.text+0x43bf0): undefined reference to `of_find_device_by_node'

As the edma_tc_set_pm_state() function does nothing in case
we are running without OF, this adds an IS_ENABLED() check
that turns the function into an empty stub then and avoids the
link error.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 1515d320f26f ("ARM/dmaengine: edma: Public API to use private struct pointer")
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c