Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp1159004rdb; Sat, 9 Sep 2023 11:21:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoc9PR7uWVKdnPbeWKON8KxMmPrqcsNagzX8GsbV2CPmtXP6//tdR7f9dYdpREZVu3S88M X-Received: by 2002:a05:6870:8a2a:b0:1b7:60aa:6bf9 with SMTP id p42-20020a0568708a2a00b001b760aa6bf9mr7639114oaq.14.1694283671950; Sat, 09 Sep 2023 11:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694283671; cv=none; d=google.com; s=arc-20160816; b=MX+57DQazdUKZ1UqYtc518fO6Jz5405B/++POMB3nnlgBgQtz5cdACddteLXXQk42o U9iqoTTri5+BiV6MzRLYJvCBe37H4PkqiwFCvojMrfxMz3FoSGWzjWz+HTQGgkrDvPGv yKUlgIPR3upc1xFDuU/AExDZdBZnUo4s+nZZ0Ej570/FHVquPlmAp/DIfgCvDFY69uJL W0yz8Gxd+cgDkd7jy29MyJ3ObcjWpNnD6iq/OO4sY6r4HYJ+88EVfHDpbn+gzFosNHUh HBcIWX6BozHqb8nIJUUZNn2oL3SXojLrFnX15UCGORIPUJZCy9x1R+knoIb+aiOVclZe daQw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l62-20020a639141000000b005775a0cd009si334185pge.331.2023.09.09.11.20.57; Sat, 09 Sep 2023 11:21:11 -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 S232119AbjIIQZ7 (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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 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; -- 2.25.1