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>
This commit is contained in:

کامیت شده توسط
Mark Brown

والد
8fc22fa4b2
کامیت
8af26493c0
@@ -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 */
|
||||
|
مرجع در شماره جدید
Block a user