From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383417; b=T8CkVY73nUqZk4+UwbMEhpupeuf8QTRV3v127yOCVnrUkyLQL6/5Ds5G2DC6iZgKIr5Z hCnK0/SFV/cLMiFGDZuXHYTAjl0MgqDn2g303Xc7oygMlPcjb2iMUxr7ohISaCcIwGBC3 QqpKsXxB+ed1BzBJINwEiAJP0UFLUtWt58JVJ55gluGYvSJTNnVvlh0qjiqNEcLd9oRYC 4g83EGjL7MeK2q7/ZoaQBhvU9DiCsNJAajFeNSlsmzYXU84AQE69Jmpab32HCt3Xodv2M 68zFj0/+LnR6DFRcPqV/LuRXF3DNmQa84joyNBZZYE6wthqVl8LrU21kXRBOSD5od0A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383417; 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=LSDh7CLcPN52GKCuSe8EllEJjC4/EOV3gYK988vQj5A=; b=lBQziVvZoq7UBsC3FdIpD6umwYSuvGwRhWCm6T4HG3AH0SYmEjNXLQhcipK78eeHfdu1 cl6kboEMEbU8T5SOWtgZ8nK4IyaqNrrpVCtSb3bh1keg6umWXmzFBgWXsz4TipfgMeWOu Ff+vPSkjB4x1euwGher96oexXyJxsioNR0NDSmJCnrFStWSTKnMCNlwrnp49/wNZ2RsK3 43dEjn4FUfy5bvPwohSpOzh9XVZEiJYZMLnmXIYl8zQHtmN0JYS/IC8R6n/zZe1LwAgrl BAIMfyH2e6ozbtjs7l9fC4p3b4RaflY3KnB4KknyXeGFINjSqJjEM7KF1AxnV/FIlRA== 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=FlEp78AR; arc=none smtp.remote-ip=209.85.216.54 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 B5F2C606A32F for ; Fri, 4 Dec 2026 11:23:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5F2C606A32F 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=FlEp78AR Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-3b413d04c93so556949a91.1 for ; Fri, 04 Dec 2026 03:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796383416; x=1796988216; 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=LSDh7CLcPN52GKCuSe8EllEJjC4/EOV3gYK988vQj5A=; b=FlEp78AR7boeRHpnQko2ZxGsCWdGke8FoyUYkDQTa1bA3sAlK+1/fmwCdOoJl8+dfE 4mgerFJsll85QFU9yzdhTti2QIOn5qIkuPdEviVBxMzTSBnlwH8fNZ9PtEARU4qwkzeU F8CyfwmjLaYIkD0r/Qz6SEGICjkRXZEf3WQH6ihuV/y9w4bA1IInVTPo7j6aMxj0LU2R oGJVtJzjy/R/paWAlSkO6hK8wpQSM9jn7m0lwtSflC8OMCf66kMJbTVJ/M2eCnrdbt4d JZCpGhhj7sSMj/hI1xhWSsgwPxcLqtI1EtLb+dYh9FYaEuV0zQiLYIbqPXcZ1ux0RJSC 9vbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796383416; x=1796988216; 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=LSDh7CLcPN52GKCuSe8EllEJjC4/EOV3gYK988vQj5A=; b=gObd2wkWEJ/e8BIiTxqhv8AxdJhVu/rD5Jy9SBPgKs3DmpEv0yPJHViF4KRqzkQW91 gPGVsRfjotO04xq2ZBXtGqdKhlpC+mI2hznD5RVpB2aVgI7ZYChCthXCXFUsaxqWYtK7 7K8M2sys1XjSLyiyMRgBGNMN8kNXaur6WcPj4ykY4za7edtk3npW8rEAtYUgpXxRnU8K 28PBMMJmTZhbNUIhXMUR8wl3Ae2D2ubOosNeTXPTPvE0z1IhDmcd5k3vIi58cmwuAaVy g3NTSHPJnwGPYu6N3opJEoUa5pCdTpn2ADkmQlor7c8bdpb1JBUjZJAtAau+MWQH1DuA JCeA== X-Forwarded-Encrypted: i=1; AL+hErEc5QObwLpdWZ6laLbYFgNO4Vb0kHZcmkUlVsM715n0jkgpWpKwJfcwocahWv1/ZCcapthuVEQ8vdjkO0g=@vger.kernel.org X-Gm-Message-State: AB4q+uG9qOyVRhu+K7fkx5AEw4PthOo50pGHUQEyUW9EE4uw7aCePcYk /WDwN5PJDBVMoNphRcMihi301jXCFNPQHq1PiK1VU/Itg5lrMeB0OtjV X-Gm-Gg: AZFdTZeTm9HwWF65mXy1LumRnH8V0TWNOlRjXk9yxwoCJECWrV51Kf2cKoueDeorU7c H2ZbbzRZmUmGes1mAnwiDAQfJBVIvaWSkt6j3p8kzxe0n2rj2kpCKulQhTso5FsOURC7+yN/cy6 zHa3K6xeFAdUZFKiIM4gg30BcWTk6boFPbr8i4q5Zu2yaLf5FfT+o/xw3MyXXasVYdbU6RLeyvB RBpRMaeAGJnZAmIhSJMlTZnNQSxGV3xaZrSbJIabQkezWz+TBbmqKeN9EhBFBiEoFMhoIevjQWs UYeJt4/0ydR76fXJRT6buQCSyoArH8oZTes08pJjqNAmCajZy7+y6znDaiPzRzrL8+iQAW1LjeK x/FKrlgU0Ism11LBXlDSYhwnldojHG1dcVKxsj4UjBhPRlNxn/bvvGGtNzt2jQBmTnS4QE4yTy5 LK1WILAVRwpZRAFl1JtRlyneKECFKOoNbNPgOOPPNpSjvVbiMhsE1lMszKKqtojfCkpyNoKmhui bBAvHd4bpaS+ONk/adecXr6qF/7g+LeLC4UNlvogwV7bj/LyItjiF4Vdv8y+fZiWhktH/ZS/TrO osvYhkYYVkmXwkjQBHImnBQyw2IKFhYKxJfV1GvyRJ4V7sHyHFC8SPRjzMuU+3IBGn7Q50SpmgS cf8XMF+AXO0KfGleTQEeAKZuS1G9Bf7jWY/JOMsd+cA/d X-Received: by 2002:a17:90b:4a46:b0:3ac:e6a:1b2b with SMTP id 98e67ed59e1d1-3b5e04855aamr1669963a91.0.1796383415932; Fri, 04 Dec 2026 03:23:35 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 03:23:35 -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 05/11] ASoC: tegra: tegra210_amx: Use devm_pm_runtime_enable() Date: Fri, 4 Dec 2026 18:22:14 +0700 Message-ID: <20261204112220.63695-6-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-kernel@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_amx.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/tegra/tegra210_amx.c b/sound/soc/tegra/tegra210_amx.c index 2288656a3278..a549995896ff 100644 --- a/sound/soc/tegra/tegra210_amx.c +++ b/sound/soc/tegra/tegra210_amx.c @@ -763,6 +763,10 @@ static int tegra210_amx_platform_probe(struct platform_device *pdev) tegra210_amx_dais[TEGRA_AMX_OUT_DAI_ID].capture.channels_max = amx->soc_data->max_ch; + err = devm_pm_runtime_enable(dev); + if (err) + return err; + err = devm_snd_soc_register_component(dev, &tegra210_amx_cmpnt, tegra210_amx_dais, ARRAY_SIZE(tegra210_amx_dais)); @@ -770,16 +774,9 @@ static int tegra210_amx_platform_probe(struct platform_device *pdev) return dev_err_probe(dev, err, "can't register AMX component\n"); - pm_runtime_enable(dev); - return 0; } -static void tegra210_amx_platform_remove(struct platform_device *pdev) -{ - pm_runtime_disable(&pdev->dev); -} - static const struct dev_pm_ops tegra210_amx_pm_ops = { RUNTIME_PM_OPS(tegra210_amx_runtime_suspend, tegra210_amx_runtime_resume, NULL) @@ -793,7 +790,6 @@ static struct platform_driver tegra210_amx_driver = { .pm = pm_ptr(&tegra210_amx_pm_ops), }, .probe = tegra210_amx_platform_probe, - .remove = tegra210_amx_platform_remove, }; module_platform_driver(tegra210_amx_driver); -- 2.43.0