From patchwork Sun May 14 19:19:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13240548 X-Patchwork-Delegate: geert@linux-m68k.org 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 3B45AC7EE23 for ; Sun, 14 May 2023 19:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbjENTU1 (ORCPT ); Sun, 14 May 2023 15:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235520AbjENTUZ (ORCPT ); Sun, 14 May 2023 15:20:25 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5064419B7 for ; Sun, 14 May 2023 12:20:24 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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 4QKC523Lnnz9sQp; Sun, 14 May 2023 21:20:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1684092022; 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: in-reply-to:in-reply-to:references:references; bh=gZM5ZzjtFg/rYXLHRzCfNvOVOMDqKgxi6keltv+A8jM=; b=SYeiz9Jst9mGRjgXg9VlfyTkuoXkRHjMehO9/hoR3aSWlADuBs23xY9sgTEqBYc8oDZphX 1+AvbCbQk8zPDybvCtp3MKtUImc2nbrwGRhNarVoNwLhl0Xpyhf7Ri36ERDXtYnSSHm6Kd RgyyjXpMbZXncXu3QZ8tLQUmNGzuCVIs4Nu4b4l56POriKLZmNt5hVV3oh6BXh0a73KlN/ sWS0XDvtsOmSUtjUfOYUE/Ye4k+7MQh8TB3HBcUAaZz8U4k9u7nitTZXgPSChqYK+XMvUi lnPl/gSQzIZlBBdaxpzBF9qm4MNGSodldNv7WZe0i0g2+f4g3jPMT1bZziV+Ag== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1684092020; 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: in-reply-to:in-reply-to:references:references; bh=gZM5ZzjtFg/rYXLHRzCfNvOVOMDqKgxi6keltv+A8jM=; b=HtTO8Mx16X1JWK2rHsQksSgy8hxBe2wjoPFgdPFBWdDSqTDsW/2NbOLcvgMCAKG/FTM/Pn QoeLg7iL8Q2FX3YcZ7PIOtvsWAUIk+fqf3s5ZtoTWYQp4teLfOOeLTwUpYAFkzu9eZZMo8 y6X8luIMyBZb79ih64v4ltt17RO7rCgeZPHGmUelqkmbNyKdUhqFFKruKwRlh++EBGSSox guMXkgw7sFH8HkAH6F60BkZP+lppQakT3ic/aaTDaupAYvd5u8HKBo/oQL3YtHFZgQFKXg MPyKuKCSxlb36ohd3+i3LRXTRRjBY8AKuoT12LbIQrkCHlyIyFyWCfrbvlzgyQ== 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 v2 2/2] clk: vc7: Use device_get_match_data() instead of of_device_get_match_data() Date: Sun, 14 May 2023 21:19:59 +0200 Message-Id: <20230514191959.706269-2-marek.vasut+renesas@mailbox.org> In-Reply-To: <20230514191959.706269-1-marek.vasut+renesas@mailbox.org> References: <20230514191959.706269-1-marek.vasut+renesas@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: bc96a341453e96c3f4f X-MBO-RS-META: jfnwzbj7be4rmde9irnsngfbc7x91zaj X-Rspamd-Queue-Id: 4QKC523Lnnz9sQp Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@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: Geert Uytterhoeven --- 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 --- V2: Explicitly include linux/property.h --- drivers/clk/clk-versaclock7.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-versaclock7.c b/drivers/clk/clk-versaclock7.c index 0ae191f50b4b..42abd5da6675 100644 --- a/drivers/clk/clk-versaclock7.c +++ b/drivers/clk/clk-versaclock7.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -1108,7 +1109,7 @@ static int vc7_probe(struct i2c_client *client) i2c_set_clientdata(client, vc7); vc7->client = client; - vc7->chip_info = of_device_get_match_data(&client->dev); + vc7->chip_info = device_get_match_data(&client->dev); vc7->pin_xin = devm_clk_get(&client->dev, "xin"); if (PTR_ERR(vc7->pin_xin) == -EPROBE_DEFER) {