From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383435; b=3Disvo97jLAOszi3S3Wv8lg5+xOVmvZmYlATJWWzfHsvhg8LffBrz/QZ0EYMtASwfT8n ymg3c83aoSBXOOmQd6O7tJqZMPvBlDUEwGIisdzekpS7vg5YFVzsa3JZIP/VlHuxQQFyn zUlbowfnqx0EMB6hL7MaJpFI7L7fv80oiOa5loehaUXxvHmq0HPL2NGuHf8jAhplgZXBJ t2D8p2LSoIlpI0h2++n9aIFuNVkcWkrtWh1I5FDR+ogJV2PVYgYeuIZEeYGkiDDB6L/nl pBnmXkKvcpVvVTFrlT6QdL5Gltx2ykjp3TCYLvahm/QTyMinB5TqxS2mNRzxALmV8+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383435; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=uqmD5bN3++vT3vjhgDoVI0UkjUqwsOGMlfRRqL1bZ2I=; b=gKiofvEaUaEW6RcAShOMeLodMT24OTwmX4ogwraGYh//JIjn0ZUfI0vOcDfb0I9p7fmE 6bP7GpFfLaqdAJj47Xu89oriSe7BxJP5Uls/b2AjxtuwNl/9Zk8eq3nm6eUTXomiGQyHM XOzECYGIEvb2H7skH4qLGUf411lW/Zo+ivim5c6t3md6TeoAvb/OlaipUK7pR1Vo85Jsx REqmTkMln6X3/YSBBFPcTzydcb09rRZoSfIwsEVSL0bYl2jYISGxkBZ3pKMin4fg5YOwg m9BUgJp3TSVuwW7qcSZNrjs5tcNmmmLhDMdilgKscttqInDRaXtgumKJ2H1FQgHj/qg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0QJCp1YN; arc=none smtp.remote-ip=209.85.210.180 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAB63606A332 for ; Fri, 4 Dec 2026 11:23:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DAB63606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0QJCp1YN Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-8c20d68c83fso1173703b3a.0 for ; Fri, 04 Dec 2026 03:23:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796383434; x=1796988234; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uqmD5bN3++vT3vjhgDoVI0UkjUqwsOGMlfRRqL1bZ2I=; b=0QJCp1YNXq5IrtsdEHf9w6jnLVivjjEjsDRWuZcz4984b4Sts2B4b6dD7hLUM7aViy cqpCAKc2TRMcxz0ejzmTUZYLtxnr+HLasYUsCe/s1ioZ+5jVt5Z7A+rdfRDPt0jVKfiN NSgJczX80tGig/BYXnY6mbwR83SNSgOrUDC8yp9bLKT3VL9l5pDGX5+j608BlQuiAqBa vG1bW3vc0K7vttXCnzZPpBLV28zn1ra8BqIAaQPZe37sw8A9sokBw+N7Szbr9qV1vUHw g1pLLH6kkDfL26uMtdNdQpPUjAbsdESWvri9+dsF9QnVK9wnyhtmcSpju0aqhXcCLV/f 9yeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796383434; x=1796988234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=uqmD5bN3++vT3vjhgDoVI0UkjUqwsOGMlfRRqL1bZ2I=; b=hXtFYtGiAcdPyOp2cbpFGq7sv5E0uOy7kJyVbf9XJ96Uglpa4no0I9F1IO2weNbTAE cq9qh+sfdgBoGZJvsowXLa44vlAUSCk/8giF2K59gpe8x0Or/pjnvXjTPB1e57vben+d NBvV0XOfVrvkRudC/fap5twFb7vEMf4+9HpGqtQUbegxFAhaGaWoMc/D680h+f11MhDG //KtNNAJAo+IYqoH6SOD8A6ZAlQJLMZP4Z8Z2YMO+PYza0Bghj43BCho1QozIpEJc7gv THz28nG7Ug2ITT6JeW/IaeueDAl8Xo8Rf0tbeoNnaol4RzRwUy+40tS7oiPrNhHDlDcA mesw== X-Forwarded-Encrypted: i=1; AL+hErHp+XoQQ9DGa8xEMyJfEiRXBc9rQitStXb8f84weG5xLksZBo3HxSKMhIxSicUdNnJq8LehS0yYC3q4HA==@vger.kernel.org X-Gm-Message-State: AB4q+uFMS5YRxm0wBm2fXunLd+4994G7fMnYAco/06YHKqvZ2tZtSMaq x4sgnX5OMeedNrVGMcVr+WSJXkyPZWZUqHTm8ItK0EEaO8RcJUQx2Bn6 X-Gm-Gg: AZFdTZdFVD24FI2dpzidNSBuiVEL7yTZzwKSuWGfJXiDVoVxYFRfuu9mpV03+c014XK V72LGUO9tiVvp2HclsOnr/4B+OyZYLRyzTuij5FA2EQ9VhFi8WBYXKDGEPUsESdTED8Pc3lrhy3 36p+9bHRexhbY0fAg9cU8P7ZapWSZnZx0oyVUObl1cOCShC9edQTggC7zoyt/olY/pw2CkRhumU 4herNFUZKXFOkinh+3uOD6XuGhChpy0Riui+8kNOYr57xOQsoHX0DCOah+32y/DwTJ5O/izaw2e nqVWsDGgiYA9FNgQpZr+ncATHCaa10XiOgLpfCGlBvB87Z2gop1CU6b/KYQR+wu0UIGS0kBcJAK uRdqfHD56FYyg1ggqBOth6UVUrQe4c1ja2shBoj4x5thFHfrvge9GYtYLfzVACMIm3wvPqqOVdg mE0pi7Y5jPosRLmwvXo54GsnazF4CA2o9vWfqrSY6875tVRQ9RTI0cFeI/IzOGhT+KG78cGwF60 bzIGYjFnhNN3USnELsAWI3qA/xsd2y7vQgN76BrroQtBOiEMJYutUwkFViagLwpfV7ubf4Mv/Pr 28/HfKWh4sbiTy7SV2IjqBb/lTT6OsUHJE3HFGCj2zWJv9ZzeryQSbxuTa7gBYEbEyK53FUFzgA +IMoL1eiQ0QjLYOaWPAYapP0NE+/AHOPXrpTi352TUoRk X-Received: by 2002:a17:90b:5848:b0:3b5:dd3e:9299 with SMTP id 98e67ed59e1d1-3b5e06194c4mr1005663a91.10.1796383434106; Fri, 04 Dec 2026 03:23:54 -0800 (PST) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d911casm9273523a91.15.2026.12.04.03.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 03:23:53 -0800 (PST) From: phucduc.bui@gmail.com To: Mark Brown , Thierry Reding , Jonathan Hunter Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Sheetal , Kuninori Morimoto , Takashi Sakamoto , Kees Cook , u.kleine-koenig@baylibre.com, Danilo Krummrich , Rosen Penev , Piyush Patle , Chen Ni , HyeongJun An , Anupama Kunkulagunta , Peter Ujfalusi , Bjorn Helgaas , linux-tegra@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH 08/11] ASoC: tegra: tegra210_mixer: Use devm_pm_runtime_enable() Date: Fri, 4 Dec 2026 18:22:17 +0700 Message-ID: <20261204112220.63695-9-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204112220.63695-1-phucduc.bui@gmail.com> References: <20261204112220.63695-1-phucduc.bui@gmail.com> X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc Replace pm_runtime_enable() with devm_pm_runtime_enable() and remove the redundant remove callback. Signed-off-by: bui duc phuc --- sound/soc/tegra/tegra210_mixer.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/tegra/tegra210_mixer.c b/sound/soc/tegra/tegra210_mixer.c index 1c19c8c35466..c97b8491f661 100644 --- a/sound/soc/tegra/tegra210_mixer.c +++ b/sound/soc/tegra/tegra210_mixer.c @@ -924,6 +924,10 @@ static int tegra210_mixer_platform_probe(struct platform_device *pdev) regcache_cache_only(mixer->regmap, true); + err = devm_pm_runtime_enable(dev); + if (err) + return err; + err = devm_snd_soc_register_component(dev, &tegra210_mixer_cmpnt, tegra210_mixer_dais, ARRAY_SIZE(tegra210_mixer_dais)); @@ -931,16 +935,9 @@ static int tegra210_mixer_platform_probe(struct platform_device *pdev) return dev_err_probe(dev, err, "can't register MIXER component\n"); - pm_runtime_enable(dev); - return 0; } -static void tegra210_mixer_platform_remove(struct platform_device *pdev) -{ - pm_runtime_disable(&pdev->dev); -} - static const struct dev_pm_ops tegra210_mixer_pm_ops = { RUNTIME_PM_OPS(tegra210_mixer_runtime_suspend, tegra210_mixer_runtime_resume, NULL) @@ -954,7 +951,6 @@ static struct platform_driver tegra210_mixer_driver = { .pm = pm_ptr(&tegra210_mixer_pm_ops), }, .probe = tegra210_mixer_platform_probe, - .remove = tegra210_mixer_platform_remove, }; module_platform_driver(tegra210_mixer_driver); -- 2.43.0