From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amadeusz =?UTF-8?B?U8WCYXdpxYRza2k=?= Subject: Re: [PATCH 01/23] ASoC: atmel: atmel-pcm:dma.c: use devm_snd_dmaengine_pcm_register() Date: Thu, 27 Jun 2019 09:43:16 +0200 Message-ID: <20190627094316.35057063@xxx> References: <8736jvkcy1.wl-kuninori.morimoto.gx@renesas.com> <871rzfkcxb.wl-kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D76CAF89678 for ; Thu, 27 Jun 2019 09:39:20 +0200 (CEST) In-Reply-To: <871rzfkcxb.wl-kuninori.morimoto.gx@renesas.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Kuninori Morimoto Cc: Linux-ALSA , Mark Brown List-Id: alsa-devel@alsa-project.org On 27 Jun 2019 11:00:01 +0900 Kuninori Morimoto wrote: > From: Kuninori Morimoto > > We have devm_xxx version of snd_dmaengine_pcm_register, > let's use it. > > Signed-off-by: Kuninori Morimoto > --- > sound/soc/atmel/atmel-pcm-dma.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/atmel/atmel-pcm-dma.c > b/sound/soc/atmel/atmel-pcm-dma.c index 042e593..9abf072 100644 > --- a/sound/soc/atmel/atmel-pcm-dma.c > +++ b/sound/soc/atmel/atmel-pcm-dma.c > @@ -111,13 +111,13 @@ static const struct snd_dmaengine_pcm_config > atmel_dmaengine_pcm_config = { > int atmel_pcm_dma_platform_register(struct device *dev) > { > - return snd_dmaengine_pcm_register(dev, > &atmel_dmaengine_pcm_config, 0); > + return devm_snd_dmaengine_pcm_register(dev, > + &atmel_dmaengine_pcm_config, > 0); } > EXPORT_SYMBOL(atmel_pcm_dma_platform_register); > > void atmel_pcm_dma_platform_unregister(struct device *dev) > { > - snd_dmaengine_pcm_unregister(dev); > } > EXPORT_SYMBOL(atmel_pcm_dma_platform_unregister); > Do we need to keep empty function?