]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rnsd: fix build regression without CONFIG_OF
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Apr 2015 22:18:37 +0000 (00:18 +0200)
committerMark Brown <broonie@kernel.org>
Sat, 11 Apr 2015 22:05:18 +0000 (23:05 +0100)
commit240a09a8f4470a94a61c2ff1502c664c39d59afb
tree18b09e4cd549d621c7f4de4eb535e60d0ead5ab2
parentf1c176038949b5d88076d590f0d9f8697c235a30
ASoC: rnsd: fix build regression without CONFIG_OF

The r-car sound driver only works when CONFIG_OF is set, and
after a recent change has a compile-time dependency as well:

sound/built-in.o: In function `rsnd_dma_request_channel':
:(.text+0x9fb84): undefined reference to `of_dma_request_slave_channel'

This could be fixed either by adding a static inline wrapper
for the function, or by adding a Kconfig dependency. This
implements the second approach, which seems appropriate
because the driver in fact has a hard dependency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 1ca74fe28fde00f ("ASoC: rsnd: 1st DMAC dma-names cares subnode")
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/Kconfig