From patchwork Sun May 7 13:41:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13233735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 850B1C7EE24 for ; Sun, 7 May 2023 13:42:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjEGNmJ (ORCPT ); Sun, 7 May 2023 09:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbjEGNmI (ORCPT ); Sun, 7 May 2023 09:42:08 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3ABF30DB for ; Sun, 7 May 2023 06:42:06 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QDlvs0ZMmz9scl; Sun, 7 May 2023 15:42:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1683466921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=D3uLEmivijwYVzqw/8zlTNspBajMlCggcmC9qlJ+tl8=; b=gVkeuIw5Srgx/KuyF+nt1AWI3/iC2M0gSZ+lkOU9/hC+SRWhFhJZBprYtRFeL/RUGtGdUj fFWHs7PMwo4t3pmmOu5ctNx0RA84DVM4RwOHgLGzFHaeYAjwrfPFKHJu5StuPEt297jCo1 cPbUcGVk05GqmABGyJJAtUMSsZGmZDDDrgfnAVTrCseK1aiz4Sv/7soegWaNOYOZV0006c F+S3kvN51CylfetPQcRGJJBvp1+sKH2eyGJoCXfBqVGJBIHlc2mI+J5ScUq56BDAJFdfw2 aArG9wJ2qNi+pKuSZGYVoWFQ9jEenHmXawJyr5uzPQudHXYPNwenfzH9LhVJhw== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1683466919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=D3uLEmivijwYVzqw/8zlTNspBajMlCggcmC9qlJ+tl8=; b=pn+q6Y45brWzGo2WbCpF602cqNGp8DjmRyy5tUvB4RERb7XRJo/QIA5r91YQo9rTsYyuBa OJQ0I3uKjOCS2iov3djB6BTImdohZBb16cR/6guu+ZQrmqrZY3q0r8mo6KX+nDfCbEgLc3 pX5/pUOBW4HPQlCVXKzf0nIWPurHjqCgFxgmLjTyq9dHEW3PbsPoycwGqC9ImgXgfa7wPf 0k5rzuA6+g7AbbvT2ecq5JfIrSC1YSKLSab7snRFS4cGusXZdg6q7Qn77HG0JlpHQBOTUk 9ydsYm19MsrPPy+vCZVo5q6vdzSmIAcvWY+WfdzRJslMbAz2RRj3BQQwXJafyw== To: linux-clk@vger.kernel.org Cc: Marek Vasut , Alex Helms , Geert Uytterhoeven , Luca Ceresoli , Magnus Damm , Michael Turquette , Nathan Chancellor , Nick Desaulniers , Stephen Boyd , Tom Rix , linux-renesas-soc@vger.kernel.org Subject: [PATCH 1/2] clk: vc5: Use device_get_match_data() instead of of_device_get_match_data() Date: Sun, 7 May 2023 15:41:47 +0200 Message-Id: <20230507134148.16530-1-marek.vasut+renesas@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 6f01736487f43392e19 X-MBO-RS-META: pjxby95jjgg8o8q334dyi5ikd41akd68 X-Rspamd-Queue-Id: 4QDlvs0ZMmz9scl Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF. Signed-off-by: Marek Vasut Reviewed-by: Luca Ceresoli --- Cc: Alex Helms Cc: Geert Uytterhoeven Cc: Luca Ceresoli Cc: Magnus Damm Cc: Michael Turquette Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: Stephen Boyd Cc: Tom Rix Cc: linux-clk@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org --- drivers/clk/clk-versaclock5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c index 5452471b7ba5..7d91d5e862a3 100644 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -953,7 +953,7 @@ static int vc5_probe(struct i2c_client *client) i2c_set_clientdata(client, vc5); vc5->client = client; - vc5->chip_info = of_device_get_match_data(&client->dev); + vc5->chip_info = device_get_match_data(&client->dev); vc5->pin_xin = devm_clk_get(&client->dev, "xin"); if (PTR_ERR(vc5->pin_xin) == -EPROBE_DEFER)