Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp630990pxb; Tue, 3 Nov 2020 08:26:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2ijtTLD2EZIzfTTrKcdUBK4o3q4w0B27d06XnjUrv/ObIufXqhoCusSQoy4eInGf3lClI X-Received: by 2002:a50:ab5e:: with SMTP id t30mr8434629edc.314.1604420793305; Tue, 03 Nov 2020 08:26:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604420793; cv=none; d=google.com; s=arc-20160816; b=sxjOHDt8aXTuVirNLY5uXkLBIwygKkWKnEF4RlqhvRfbmAfWCCBt+wDUu5BoKEns+S SxVzd+u2SWUPLX0q4CFGFPZh9tFNwzqbPMCYHGKRnUA9ZuGzJe9tQeZMzZF+wzVmUYba kuZKJBlb5S36mFz/XbhY53YOXwKyNNHAQgp+zU7jmXCRiENWWCdiOnICKQrTqs/KNaPs mmFo5hou1Fv51kpfeoC0OAyaOsBP3S+72K8AhQnCfL4dK14PjLDXNKkooPLoLipZwviD 7zE6v2LaaVUp9jRcm5Mu9zJUgr+p0E3rjya4uzaLuwCqlWmJ26dQDQkg4EANHp8wluK+ 0kew== 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:dkim-signature; bh=QQca1hmRjWYqlpxvYJz9NwzFLz/4ue3S1nUR4tuFPWo=; b=d060hGT/B0xU4n+pf6JlRTDX1ktQ9uAiOsVmOMkugkyojNSxCHxPe1K+eX9JxwZ2xz pyXRUAJccqgV2OY1Rr0+TANAm36GyxldiB8kCM6R2NumHySjUhtfWe2fnNnuY+65zvam PSDVyKdRv5fEDmknFxzvlgLD9kTwA9t4w8iyXl54utUWCisOnkuMq/JeLCFXdx71hElx MOl9E9DNltiDHNSdj37PZFFyEVA1/2aDZJqLnDLYg2RspDb1y/5U4I+8HkUiIHStbavj PUOj9UVpXtOZJ1Q0j0Ep44bGd4NI01hW5ZuX+2EC9vrZTy9H3eCV6ScwNSybbIlS7KD9 JtaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgC4Zm9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si12504174ejb.424.2020.11.03.08.26.10; Tue, 03 Nov 2020 08:26:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgC4Zm9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728317AbgKCQYn (ORCPT + 99 others); Tue, 3 Nov 2020 11:24:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:51332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbgKCQYn (ORCPT ); Tue, 3 Nov 2020 11:24:43 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A576B20674; Tue, 3 Nov 2020 16:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604420682; bh=oy0BIq1d1q74mC6j3/1prk2IjXyLRHfreCZtGCV8UV4=; h=From:To:Cc:Subject:Date:From; b=AgC4Zm9HcAnnExuc3aSR7BodaIW9ulmnWxnVFE1LdEdOMjW89BQ6TYPGvf96nbj10 Lw1DdNRIJsmjCL6FAMI3cw27BvCOD2LVCCvbP9q12EpxfxvDu5sHPykyNTkktnArqh FIv8TbgEF4stkwGBaAs2wuQUqC2wxhMdNPuSD1TM= From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Sudeep Holla , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Geert Uytterhoeven , Peng Fan , Abel Vesa , Anson Huang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/8] clk: pwm: drop of_match_ptr from of_device_id table Date: Tue, 3 Nov 2020 17:24:28 +0100 Message-Id: <20201103162435.13689-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might be not relevant here). This fixes compile warning (!CONFIG_OF && !CONFIG_MODULES): drivers/clk/clk-pwm.c:139:34: warning: ‘clk_pwm_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-pwm.c b/drivers/clk/clk-pwm.c index 86f2e2d3fc02..da2c8eddfd9f 100644 --- a/drivers/clk/clk-pwm.c +++ b/drivers/clk/clk-pwm.c @@ -147,7 +147,7 @@ static struct platform_driver clk_pwm_driver = { .remove = clk_pwm_remove, .driver = { .name = "pwm-clock", - .of_match_table = of_match_ptr(clk_pwm_dt_ids), + .of_match_table = clk_pwm_dt_ids, }, }; -- 2.25.1