From patchwork Sat Sep 9 16:02:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 137851 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp1405095vqo; Sat, 9 Sep 2023 20:20:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjHEO+qRUW25+YyFgml0sZUF8Lba7/e22TLPtMFzQjbfZHIjd3N3InSy9wYWuJg4LzdNTu X-Received: by 2002:a5d:564b:0:b0:317:6849:2d39 with SMTP id j11-20020a5d564b000000b0031768492d39mr5464320wrw.10.1694316055899; Sat, 09 Sep 2023 20:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694316055; cv=none; d=google.com; s=arc-20160816; b=X2ILHDUUCQbTbqjZhc414hPDINIJGD0IJNDClwO+VAi8sMntohqZlMzplQ2Syv+C7K +5LMCR64CNEQrPOg7bM7hcXclIbKmyZkZjC+PNFqOWnWcJ5RLXP6CyhQ8SHf3bIGOZjs H1NdOvLLPUOvD/4ghMQh5QY4ioTAzCu1PkWwES0IVtMizkLb7CYqwi/ccFyAr2U8ytXP eZh8DNU8zi0VLFFrX6M5imea1y0FdWyIA/gF9znw+7FzqkbCFz16/Ep9ux/KMqfo236J acW/Ec+j2OrRCchCY1Jo5Hrte5GwIZu61geea5MZhya20Iai90+ZTNKSCeCtCUNYkzXM 59pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=03UPyG2WXSJAEsMQ7keUNWFU60wQ0S2jpQPtzqYASjk=; fh=+giPXaJpSKwK1gTm7/7/7I+kye+vTt2snpl3XuahTQ8=; b=UcJQcUXDq3I/SWQFMEO+OLad9Xv6Vpsx7SI4CSqHZAJIZ5hvaJN4sMXp2vJRnTfP+c HMr5xKMK+6jPF/N+lLx7Wv3IFApy+ZiqpE8Ke/oqCQQeLUe/aIqPMQsn4zyCt0d5GcnF ZiKuilkmmNgioyIuhRJcCm/bAyfCocttWkGSMijJCm2SJ63P+YP9f/uGS1+ZL0EMK/8v aVcEjNzqq9/CLy2NS59ZwmC1FHWEt5GB+YoiBynRjDFR0hMcwf8Ex07NRMOUENqHrA/o dOUUEjU/8Gaw+Cz6sZR1I3eWrBewAxCekSe2ivL+MQO/Iv8TF4GuK37Qll1fAU7bnq4I 1mnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020aa7d7cd000000b0052a1d345e94si4095545eds.569.2023.09.09.20.20.53; Sat, 09 Sep 2023 20:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232177AbjIIQZ7 (ORCPT + 11 others); Sat, 9 Sep 2023 12:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346724AbjIIQC2 (ORCPT ); Sat, 9 Sep 2023 12:02:28 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 306D713E; Sat, 9 Sep 2023 09:02:24 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,239,1688396400"; d="scan'208";a="175534154" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 10 Sep 2023 01:02:23 +0900 Received: from localhost.localdomain (unknown [10.226.92.15]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 62F274019305; Sun, 10 Sep 2023 01:02:21 +0900 (JST) From: Biju Das To: Michael Turquette , Stephen Boyd Cc: Biju Das , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH] clk: rs9: Use i2c_get_match_data() instead of device_get_match_data() Date: Sat, 9 Sep 2023 17:02:18 +0100 Message-Id: <20230909160218.33078-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776619152407299170 X-GMAIL-MSGID: 1776619152407299170 The device_get_match_data(), is to get match data for firmware interfaces such as just OF/ACPI. This driver has I2C matching table as well. Use i2c_get_match_data() to get match data for I2C, ACPI and DT-based matching. Signed-off-by: Biju Das --- drivers/clk/clk-renesas-pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-renesas-pcie.c b/drivers/clk/clk-renesas-pcie.c index 7d7b2cb75318..380245f635d6 100644 --- a/drivers/clk/clk-renesas-pcie.c +++ b/drivers/clk/clk-renesas-pcie.c @@ -298,7 +298,7 @@ static int rs9_probe(struct i2c_client *client) i2c_set_clientdata(client, rs9); rs9->client = client; - rs9->chip_info = device_get_match_data(&client->dev); + rs9->chip_info = i2c_get_match_data(client); if (!rs9->chip_info) return -EINVAL;