From nobody Thu Apr 9 15:03:40 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67B8D41C319; Mon, 2 Mar 2026 16:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772468976; cv=none; b=SK5dVF6FxJeaylA81xFR16kjKkgjZbV+v9Nghhg9pQch2aF3KIc5d4ZjOuZ8o/fb3cEVOa+MIMIbMvaKvmvwIfF54EUKOsDDZuBOO4AfiUvhU23z2ghf30rmzzqKEtULJrJwZcDWUzL3HtoP4TSiii4dfbhgxufOf1cxCMB5OWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772468976; c=relaxed/simple; bh=HWj2r1flt4YHyfpgbLhCJo6W+JNQ6Ii3NFEV4LeMofE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sq84HB9dCENiuFxNKLVrjULbbTK43y/0XcW65U9SQsmE+6aGNX/AXufkV4PaIQPm2lWwqjeeTi+gHTM+GiWJmjlGON9Jzd0TPLGrfzrxBHZiHKxsoI+pRIIHYmmWn+yPGNmmWVD6Gf0nME2XkiJ2PQkML3otsgiFyvZztSnLkmE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C0CDC2BCB5; Mon, 2 Mar 2026 16:29:32 +0000 (UTC) From: Geert Uytterhoeven To: Bartosz Golaszewski , Rob Herring , Saravana Kannan Cc: "Rafael J . Wysocki" , Viresh Kumar , Ilia Lin , Bjorn Andersson , Konrad Dybcio , Magnus Damm , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 5/7] cpufreq: ti-cpufreq: Convert to of_machine_get_match() Date: Mon, 2 Mar 2026 17:29:09 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the of_machine_get_match() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven --- Compile-tested only. --- drivers/cpufreq/ti-cpufreq.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c index 3d1129aeed02b06f..a01abc1622eb712b 100644 --- a/drivers/cpufreq/ti-cpufreq.c +++ b/drivers/cpufreq/ti-cpufreq.c @@ -502,16 +502,6 @@ static const struct of_device_id ti_cpufreq_of_match[]= __maybe_unused =3D { {}, }; =20 -static const struct of_device_id *ti_cpufreq_match_node(void) -{ - struct device_node *np __free(device_node) =3D of_find_node_by_path("/"); - const struct of_device_id *match; - - match =3D of_match_node(ti_cpufreq_of_match, np); - - return match; -} - static int ti_cpufreq_probe(struct platform_device *pdev) { u32 version[VERSION_COUNT]; @@ -596,7 +586,7 @@ static int __init ti_cpufreq_init(void) const struct of_device_id *match; =20 /* Check to ensure we are on a compatible platform */ - match =3D ti_cpufreq_match_node(); + match =3D of_machine_get_match(ti_cpufreq_of_match); if (match) platform_device_register_data(NULL, "ti-cpufreq", -1, match, sizeof(*match)); --=20 2.43.0