diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-06-28 13:07:05 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-28 15:08:38 +0100 |
commit | 8af26493c03581ad476a77630502de6152cf013d (patch) | |
tree | 3e406406e89a617565a13eeed6383cecded097fe /sound/soc/atmel/atmel-pcm.h | |
parent | 8fc22fa4b2cd983e4c542d1841b3d2212ad18ed4 (diff) | |
download | linux-stable-8af26493c03581ad476a77630502de6152cf013d.tar.gz linux-stable-8af26493c03581ad476a77630502de6152cf013d.tar.bz2 linux-stable-8af26493c03581ad476a77630502de6152cf013d.zip |
ASoC: atmel: atmel-pcm-dma.c: use devm_snd_dmaengine_pcm_register()
We have devm_xxx version of snd_dmaengine_pcm_register,
let's use it.
This patch also removes related empty functions
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel/atmel-pcm.h')
-rw-r--r-- | sound/soc/atmel/atmel-pcm.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/atmel/atmel-pcm.h b/sound/soc/atmel/atmel-pcm.h index 5173c9b529ba..2e648748e5cb 100644 --- a/sound/soc/atmel/atmel-pcm.h +++ b/sound/soc/atmel/atmel-pcm.h @@ -72,28 +72,20 @@ struct atmel_pcm_dma_params { #if IS_ENABLED(CONFIG_SND_ATMEL_SOC_PDC) int atmel_pcm_pdc_platform_register(struct device *dev); -void atmel_pcm_pdc_platform_unregister(struct device *dev); #else static inline int atmel_pcm_pdc_platform_register(struct device *dev) { return 0; } -static inline void atmel_pcm_pdc_platform_unregister(struct device *dev) -{ -} #endif #if IS_ENABLED(CONFIG_SND_ATMEL_SOC_DMA) int atmel_pcm_dma_platform_register(struct device *dev); -void atmel_pcm_dma_platform_unregister(struct device *dev); #else static inline int atmel_pcm_dma_platform_register(struct device *dev) { return 0; } -static inline void atmel_pcm_dma_platform_unregister(struct device *dev) -{ -} #endif #endif /* _ATMEL_PCM_H */ |