From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383454; b=Jw3pKPXif96zHR22EhNVMWF50PqiVIJwZbY+WZTTynrOz2s2/o0bi7etQB54zStkaZiY DnemE2ScOjOm4bW15OsPlNOzCkiZ2OCpG/vPXIfCqqsYFKiJUrjG9APsThxJH4z6i1bcF kzno+kHtWLbat8pvPdMglFK2EQnougU4wO40RkwP8KIZeXKGr6aCRpxvHIC22EZOXcR2y PzL/JHy5WQqcd9ZkTzJfz4AF114LH4XTR/XmLrvA45L+4z86WmKGhCLqPbqzuPUJTkjE7 tko9EfHiilUlC6YG6ebzAfdU3b5tMptarg2LQs1EIma+SVenS3L53/YaHyB47Bk+RpA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383454; 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=GztamTfXUGA2uHaH3s7iH+eHiVa7ALQB4dwbGeTKWlw=; b=yKtImk8KLTB8Ty/xsotfk93H54QgkwGqWLAsBVbWvvnlKC4+LUYmT+J5P7lFOkZdeyhQ QASgTIyFCz/B93LgXBOC/LlEtnEX+R42yv33xwXUQKD8Fb2DsZc657Tbj13aAHfe76m0s TPZOgJZ7+5c6zJc4jCrTx0ywPH9EDSUXBiJ2zbe7+4rz8aZraLK2cEeKJkNmNmJqm2dFh vAEIo4gkr+VWDLSZc4ZRu2hS5W850XdF3SS2Mz/cBZnrGGpy0sJB0NYWg2QS7zcEd5cRF kRdfUiMWgD4b5c38fau6hFEeRx4widXDOKuVocdMTtrUytI6+pDOZlHWXbLy3dJSXxw== 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=UCJyyPcZ; arc=none smtp.remote-ip=209.85.215.170 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 AEDAF606A699 for ; Fri, 4 Dec 2026 11:24:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AEDAF606A699 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=UCJyyPcZ Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-cdab938dc83so370139a12.3 for ; Fri, 04 Dec 2026 03:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796383453; x=1796988253; 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=GztamTfXUGA2uHaH3s7iH+eHiVa7ALQB4dwbGeTKWlw=; b=UCJyyPcZg1ZubdQzBn/trFZmslVbd6PtDi7H5hswjEjAxZBVRQQIr5rEX95g9V6g+R BJx5odjRb+m7Ect4MfIAb7CcZyc8Jo1woOf/zjJYQZAtUg3p2UKZ9VauRcxzYYQKoK7E AV+2xp69HYD+5FIwfkqdEWJ3UGRGNjCL23hX1Vs+C7N5LKE9yneS63mxEdei8gsyMytg gblOB5DGnufBwi2mhkfdf2VKW4dFS5EoFOgoj6FGRgw58lTnqBshyefWnrtERbRf6N17 dnR+QRFpZOzwiMNI1cc+3dSRNTfNgghdBbzf7gsVJryh1HAKrGJKTiPFszLHvGK3u6Sx RgKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796383453; x=1796988253; 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=GztamTfXUGA2uHaH3s7iH+eHiVa7ALQB4dwbGeTKWlw=; b=MWbhNIyIP8bZrG/vZj3RcG/6SR8r+jTT0T/obFKaAIn4FDS8AMiKFeXVFGZCCTkD4w CiR/+omn8WSi+LTSGBSOwAjhytawO4MtaQjnXb7a/9DmwMFQZOU9BHHMolmm7wzzOfBN szuX5tE3xrczsah9ieqD0Hco4YDiN2xshia59r9maa4qhIPTJgqGgiretz0OBA/zXS5p gN18BWP3ajjGRFBsZI82eo+8pYpEklFi9xVjmYIwW5mq5x2X3iZOLq1xMVSxoE5P3OoF BW+ilfS4S1XcjCmfV6Qxeofrh+V1RusQrG2hLSJQ6Jc+62UaERai4id5BzBhQ4DEanSY r53Q== X-Forwarded-Encrypted: i=1; AL+hErGQeIeoey2P+T9irDvL1Pq/pF0ShZnpMyuff64EY2kddgFgASo+6i9QJZ3wCNRJBKKYBqNQOJFG7KP5jw==@vger.kernel.org X-Gm-Message-State: AB4q+uGVaGU0/CxUmnGms4R0WqlsiPqX3gqYPRAw18GUfod/hxgAQ5sK +neTaKF+JPAMyB0jDePeyQ8GoDuLj8ws/hii+llv4vMtpuKa3SvAklJA X-Gm-Gg: AZFdTZcj8vNEQEF0DXLY6kANUvk8AM3/zsYivvJrh5JVGScuLw4Xj+sbOBEWEGQr1a8 qa/ZpgglFvInl+6JVQ39EfN7HQHVALWa5LERVwK+OYSebmVe7PWUNPwA3wDTNBbJVxHUAdCrc2/ swDHkfp+UCAd9wTeRIwri3qa0QxHNcRJzfWR7xjQ4sJ3buVOgDor8Rrc5vn7EuNe5B04SK1n+nD Czw5NV7TnvvhId+HoSb/gPmJ5zImuMzAm9/rp+Hnvfz+R1+Ymn34kW8pRXmZ+IOCLAMfFyJrxpD SLsL+eOE9G2XKbDVyquucAooCSmXCniooV7ThL8O17JsMtq0SztuSZXQPThQXjbeIWpxaTDG5n0 xXu0eF11hnZutVXhKBJJIPpBPB5AERUreZe6a4v9TTmPMkkoT0Wj7XorKvaGoUuFqmNGXvGurRC g9+oeB5ndtE2eJNu7Y9P+/jdwGkv+HZGwP61dhpiloopnAW15ovnLeH5l4Dvcmr2eEfuMqHwdem e9Dc8WayrmzK66tl/wHzcz8sLWBeirNwvPv0xohN6V+EXA7xXBrqJgi5sOubE6nEkVdhk9Ryojm CkkGjP6rQJ7O/qHptiG4XyIjJKvYNFreAFnXZV3+JjnbUXr+vJ9xNBsdkUfJeQw65zRTPvOkiW8 +SYQQ6hvMPoS/P0+tJH4RlXes/JbGKvN5aJphgvHNJrjd7JfDJxp/89NUZUVrvhtXXg== X-Received: by 2002:a17:90b:3c09:b0:3b4:1bf1:988a with SMTP id 98e67ed59e1d1-3b5e063e237mr1386288a91.55.1796383452920; Fri, 04 Dec 2026 03:24:12 -0800 (PST) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d911casm9273523a91.15.2026.12.04.03.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 03:24:12 -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 11/11] ASoC: tegra: tegra210_sfc: Use devm_pm_runtime_enable() Date: Fri, 4 Dec 2026 18:22:20 +0700 Message-ID: <20261204112220.63695-12-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_sfc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/tegra/tegra210_sfc.c b/sound/soc/tegra/tegra210_sfc.c index d86cb2276630..d9e5b5a6fb47 100644 --- a/sound/soc/tegra/tegra210_sfc.c +++ b/sound/soc/tegra/tegra210_sfc.c @@ -3604,6 +3604,10 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev) regcache_cache_only(sfc->regmap, true); + err = devm_pm_runtime_enable(&pdev->dev); + if (err) + return err; + err = devm_snd_soc_register_component(dev, &tegra210_sfc_cmpnt, tegra210_sfc_dais, ARRAY_SIZE(tegra210_sfc_dais)); @@ -3611,16 +3615,9 @@ static int tegra210_sfc_platform_probe(struct platform_device *pdev) return dev_err_probe(dev, err, "can't register SFC component\n"); - pm_runtime_enable(&pdev->dev); - return 0; } -static void tegra210_sfc_platform_remove(struct platform_device *pdev) -{ - pm_runtime_disable(&pdev->dev); -} - static const struct dev_pm_ops tegra210_sfc_pm_ops = { RUNTIME_PM_OPS(tegra210_sfc_runtime_suspend, tegra210_sfc_runtime_resume, NULL) @@ -3634,7 +3631,6 @@ static struct platform_driver tegra210_sfc_driver = { .pm = pm_ptr(&tegra210_sfc_pm_ops), }, .probe = tegra210_sfc_platform_probe, - .remove = tegra210_sfc_platform_remove, }; module_platform_driver(tegra210_sfc_driver) -- 2.43.0