Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4362894ybl; Tue, 20 Aug 2019 10:44:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpvDqsaA8vaT5RpFkSl3hP6SiKJK9SZt9ey2hhU9ufpg+4Rgpg5K65G4aV8pnsOl5reewe X-Received: by 2002:aa7:925a:: with SMTP id 26mr31313204pfp.198.1566323076269; Tue, 20 Aug 2019 10:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566323076; cv=none; d=google.com; s=arc-20160816; b=xiqO0u9o/OaXlG/a9z7EkliRlkgB4HhgNh/sM0iMekoGIsN7qu6vsLp/H4O2g5gr8R Gg3K1ZzpYqWvJbJBNmWELDt4SyMYYDszf3JYMjEfv2JW1Vm/rAIPt9w08wNUIYpN6R/x XfchecDro9Pj+2SG9YW0pM/cBtwvm6nlvA82R+4tmxXXfeYsQ6/jAS70YT+bU96XsVSh LTU9w7x+NoYj5FCBVxxc3roJZ069eeG6eOfNMbU8OrEBpZwluh0qfI3/Xs8abHO8qzhP l2JwpArQnSM3C+j1AV/etO+dPzxea0TU63+PAPCz9/DAB5NNfyV2GlLZ+AEU7KLKN2PO m81Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from; bh=/oUZyaSFvnTru9mrXf/nQ0HyOhv4Yfcc/8s9tsBFwA8=; b=xFndKqixFkmQhWoek9ucDWxz2T7F8q3zsfZ7Opmipi+OrRRf8/EehE9bzaLdbw8K4K LhmKjrtezu4iYLy3z/NhqsX+q5pHHEa9G3SsqNJ4Rwuk2bY3Dg7LkpFDzPZZVEF2P7RN 9222NQ3fiy45ljGPVIb64vdWPTonxjYno2cev8I5+3/qiOE56I5CJfCl69AoVW7Yu5Fs /M32viMxb9LX1Cl2JiTPAwT5LOf/OzsUpu4PA2TQUCtRXf6Pm3ZblM/sr8C4GkPtBT/N EbO39R4ls1l5bOKRBo7x1nNusJHZo8XR+le8lJCLK/EjkFqEmwSYNx6Cg6IuHxG3qzvl EtMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z20si12714215plo.159.2019.08.20.10.44.21; Tue, 20 Aug 2019 10:44:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730628AbfHTRlL (ORCPT + 99 others); Tue, 20 Aug 2019 13:41:11 -0400 Received: from mail-wr1-f99.google.com ([209.85.221.99]:35071 "EHLO mail-wr1-f99.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730614AbfHTRlK (ORCPT ); Tue, 20 Aug 2019 13:41:10 -0400 Received: by mail-wr1-f99.google.com with SMTP id k2so13269348wrq.2 for ; Tue, 20 Aug 2019 10:41:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:message-id:date; bh=/oUZyaSFvnTru9mrXf/nQ0HyOhv4Yfcc/8s9tsBFwA8=; b=ip6sLcxfEgVe9YXFcWFUheEJlurMPUOkySGZxfNUeDrNI4cW50DETvJOkedDRVXbNs EoCiM0OUs5afweDU657i59S47rkjKI3XhSb/n6Fv4UQfDFdDSUu4EDgm8/l/5w+3dCrV nogLJpTTxUxwQWQSf36GCioQgtUnXaalQG18Drt0XsUIEejgcHtpG197Kc2hq0D0rYih 1yTHxzQTkYp6vqBcBNlm+FG4+aCmQIFxDrJSyRraMcXRkBL300Smqy5gyyAiJyRUZWO2 G0ftt7YaJo9Hxmo4CW56gtUrDFACn3zP24I1n7oTu4Z4De9QBtlYtPIgdQrGjcabg5xp 1OMQ== X-Gm-Message-State: APjAAAVXrD7Hq0sMfpqwTy6TWO2NGXyCgzdN04sssUrcFcLhSQmpI3WX fX0MSZzFMipdRFxPrv9D5ClRFA1D/Y9wjzKIcjXzEIqAQp4l1ADlTnhsdOQSSzvXGQ== X-Received: by 2002:a5d:528a:: with SMTP id c10mr34277580wrv.111.1566322868042; Tue, 20 Aug 2019 10:41:08 -0700 (PDT) Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk. [2a01:7e01::f03c:91ff:fed4:a3b6]) by smtp-relay.gmail.com with ESMTPS id y17sm353193wrs.53.2019.08.20.10.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 10:41:08 -0700 (PDT) X-Relaying-Domain: sirena.org.uk Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0883-00033O-PC; Tue, 20 Aug 2019 17:41:07 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 407F2274314F; Tue, 20 Aug 2019 18:41:07 +0100 (BST) From: Mark Brown To: Maxime Ripard Cc: alsa-devel@alsa-project.org, broonie@kernel.org, Chen-Yu Tsai , codekipper@gmail.com, lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown , Maxime Ripard Subject: Applied "ASoC: sun4i-i2s: Switch to devm for PCM register" to the asoc tree In-Reply-To: <606d271187091e858e8c15e20555af0b79798fe1.1566242458.git-series.maxime.ripard@bootlin.com> X-Patchwork-Hint: ignore Message-Id: <20190820174107.407F2274314F@ypsilon.sirena.org.uk> Date: Tue, 20 Aug 2019 18:41:07 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: sun4i-i2s: Switch to devm for PCM register has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From a49d24e7d8d4fd4edf59e6373983e0bf4a2cca15 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Mon, 19 Aug 2019 21:25:09 +0200 Subject: [PATCH] ASoC: sun4i-i2s: Switch to devm for PCM register Since the introduction of the driver, a new managed helper for the dmaengine PCM registration has been created. Let's use it to simplify a bit our probe and remove functions. Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/606d271187091e858e8c15e20555af0b79798fe1.1566242458.git-series.maxime.ripard@bootlin.com Signed-off-by: Mark Brown --- sound/soc/sunxi/sun4i-i2s.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index d97d694c48df..70608fa30bf2 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -1154,7 +1154,7 @@ static int sun4i_i2s_probe(struct platform_device *pdev) goto err_suspend; } - ret = snd_dmaengine_pcm_register(&pdev->dev, NULL, 0); + ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0); if (ret) { dev_err(&pdev->dev, "Could not register PCM\n"); goto err_suspend; @@ -1183,8 +1183,6 @@ static int sun4i_i2s_remove(struct platform_device *pdev) { struct sun4i_i2s *i2s = dev_get_drvdata(&pdev->dev); - snd_dmaengine_pcm_unregister(&pdev->dev); - pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) sun4i_i2s_runtime_suspend(&pdev->dev); -- 2.20.1