From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383398; b=MQC5lOj5aSW4ensyw4R/PndYvOFRl6f1DEbZTX+aTdxP5JoKqHX8WCu8ttIPw3bU18jO 4hf5OsAaCWbmZQOH96qaYUIkk0xFzXk0ASllJrn5fVSg/dNXAIQ3D+A//w3brpMDbCzfo IjaMaeuZ969V2dsOzLDbyGfe75VSn8iISCgxy3EZJR+aCTIGLfMaYqnvF2bCY9kGIf1uN Igs4MLGPMtzfEH97KlyrqDzVC2QWEg4/7qF0jG/zgXP93Nhjzrbl7HlPSM/HT6DtC69gX iahFYBIyFaCemkkZHW7VazezRcqWzTS6rgOdF/4l7g2Hw6WSwsa9aiEJPz81DzkycYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383398; 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=HlkkIQhH/g8X+a657BUKkfQfSxWERxKE7SxNI9mxCAM=; b=F4jSUFG73WUrAIWstrXY5kq6ZuxFe/Inj93mPXm9gA4luA0WfuoIqwkYWDPj3kFa6qHe OzEsJtp0H1QcsQYzaQF+BARkjKGwznm6veV9sPn6GUuIJH3yyBa63XPcedTUOsD1ip5/p M4P1BZqPuz474EMUNFzMslG0wnhjocmRgGDgNf35bEnajLukr5Sl2hLvMi90Nvw7v8PVh r/tghKUIU3Qi2TSJQy8NyQCev9fRTv7bszQLhquyQ0ZH2HWhG/uqheZjpoc/p4ZfFCI+D ZOCTdNprxmHsPJ5OYNgOt0FgpUZKqF6OF1SWz55ACTtqLJJkcv72TGFCsd8lDilBlzw== 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=rbH9rIKT; arc=none smtp.remote-ip=209.85.215.172 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 8FE3C606A333 for ; Fri, 4 Dec 2026 11:23:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8FE3C606A333 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=rbH9rIKT Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-cd6028ff33fso578114a12.0 for ; Fri, 04 Dec 2026 03:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796383398; x=1796988198; 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=HlkkIQhH/g8X+a657BUKkfQfSxWERxKE7SxNI9mxCAM=; b=rbH9rIKTqziaR/axMg96tXW2Dx2n+3CEu1275JoaI4pmMc2Ynp/gREWSzKAjC2ecVY 87qmNPOQif24zr/WENWsxaBHDczeg9+BdYRjjlVvqldyNv8JJKpv9qiW6C1Y6x+ONn/T LgdIMgCXjSlRWeomUO4aglXTrhMTiM5m6hjLSlcidQNGfCtn7fpa5bNKjmjE5lJO5tld LgFfqksul1JV/FCITZIH51W2vvlJ05egHWWM4Ynsju3k+atAMfaMIQjwD2fKibF0vlf8 HS27pwkzlMVEmlRpCsn+vk1eGdLS+onQrpgM8OHmm4H9od8KU+Fcw6R+krBjRw7dj8LU Mawg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796383398; x=1796988198; 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=HlkkIQhH/g8X+a657BUKkfQfSxWERxKE7SxNI9mxCAM=; b=ghAyiUtqNQkAUf71GBHdTp3T8L4tZCl3EXVLbDWawkG9dEu2CZBNEaZzVOepisg7bF HPnj1qPxEuckEZIpzqeeR1k58Ds73wZiEI977if5grxBJZT3cQs5li0TeAPp86/v2mKT jh7jWxdws0r7TWizeSJIyiNz/7wlQRCTvMGVjUX04him1xKK+2/3q7vuCjeR248E9Jcc lULfE8NcwrspVysP5SzWS17SX1uyi+YsrOcb0zBq8xsQ/dZwpRsC9ZoWyDma86TQIzbp WEFxYggTXtVupxFGNT74xcH5Wxxpnv6hhzUdc5GDKhVi06sCioNBHHc6oBT/4J8q/Ynv EX5g== X-Forwarded-Encrypted: i=1; AL+hErHOPkjk6B1vOyRLtq9p1G6VSMmBG93Ewbzgoqbu+SxeX78TYeo4SSVsmlTDKUbnKpKpj1xYJjBn+7HfOQ==@vger.kernel.org X-Gm-Message-State: AB4q+uHha82rXzenEeqPXanQTIwjoEwB6URTGIRv7ONyjz3Bin6S1unN X01pcWbKHGjt/w1IM+Nq0K0KI0FpXBNjIcqe37Nfqf/Ea5N+LHLq0MAO X-Gm-Gg: AZFdTZfokwjgMksJlyDZ1wyZhX4+iqL8LScHEzBlhAKbxTOyIg+DVvv0LURtEBNhgoq /KPKw1UOX+i0fJ9Z3hezbPYw1n6Miv/fQBDQilFqMEemt3lySyX/mHUvVKfZm6i1jlw9wx5N4nM 7Covg876sYXXp3hVm0eLmxNkk0kCDFG0s0SUoTlyblv1sWea0B3hIeBnLpVU8uRDfpsm2YcG9Wi Z4oW/9M+q5/5WFR58afKRFBrp5UOIHX/k+jGQ/sJtu1I1+o0me9EKsc5ZL9tnDDVb+gthwV05u9 M3ypiWMVbM/rX7MWe8whgJtc3EtA0KdwrVgu/hKIhDrk2nk5hgFlytxoHPlt6adj9o797IewkNr lqMeE08DORcM393fgI8ex8MGW6bitsIzycYkfKvCeGokqYjrFH/5Q4seoCcPjIG8NwBoeDArWkL DB64+kdDgD19KF/9YH48Mw0oVDLI0qtWSj3F7vdEjXkOvndmZ/XnPWJjSQhC2OzW7dHPd5JhZol 2Auu1tsvgQfV1YYdsqlQRTrzzYs/kHphe5WZn+RaSTdPBUrP0VQrMaKP1BijJW0Kj9LXXkhJZOv uRBuvtdfFtDFj/7chjC0aSFSq8m5Jm44bghUIq1RunvGn5oVsRC7NGl9ffrd/xsaCdy3Avm60Y/ n/5DL0zf/mEjsrVawrabkhgBLwRsKg5S5tDGocHB96T5m X-Received: by 2002:a17:90b:1652:b0:3b3:8094:3221 with SMTP id 98e67ed59e1d1-3b5e064b515mr1316871a91.59.1796383397820; Fri, 04 Dec 2026 03:23:17 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 03:23:17 -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 02/11] ASoC: tegra: tegra186_dspk: Use devm_pm_runtime_enable() Date: Fri, 4 Dec 2026 18:22:11 +0700 Message-ID: <20261204112220.63695-3-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/tegra186_dspk.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/tegra/tegra186_dspk.c b/sound/soc/tegra/tegra186_dspk.c index 8896f4f937f6..98c6afdf8a66 100644 --- a/sound/soc/tegra/tegra186_dspk.c +++ b/sound/soc/tegra/tegra186_dspk.c @@ -510,6 +510,10 @@ static int tegra186_dspk_platform_probe(struct platform_device *pdev) regcache_cache_only(dspk->regmap, true); + err = devm_pm_runtime_enable(dev); + if (err) + return err; + err = devm_snd_soc_register_component(dev, &tegra186_dspk_cmpnt, tegra186_dspk_dais, ARRAY_SIZE(tegra186_dspk_dais)); @@ -517,16 +521,9 @@ static int tegra186_dspk_platform_probe(struct platform_device *pdev) return dev_err_probe(dev, err, "can't register DSPK component\n"); - pm_runtime_enable(dev); - return 0; } -static void tegra186_dspk_platform_remove(struct platform_device *pdev) -{ - pm_runtime_disable(&pdev->dev); -} - static const struct dev_pm_ops tegra186_dspk_pm_ops = { RUNTIME_PM_OPS(tegra186_dspk_runtime_suspend, tegra186_dspk_runtime_resume, NULL) @@ -540,7 +537,6 @@ static struct platform_driver tegra186_dspk_driver = { .pm = pm_ptr(&tegra186_dspk_pm_ops), }, .probe = tegra186_dspk_platform_probe, - .remove = tegra186_dspk_platform_remove, }; module_platform_driver(tegra186_dspk_driver); -- 2.43.0