Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391960pxb; Fri, 20 Nov 2020 08:23:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTDBoQJf0tmVW6a1XCA4EoYLNdLdRM9FrkrXt8T6uw7CnBbKBmZfJ/tTyWQCRgONcNqp+o X-Received: by 2002:a05:6402:1a22:: with SMTP id be2mr14269558edb.102.1605889425404; Fri, 20 Nov 2020 08:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889425; cv=none; d=google.com; s=arc-20160816; b=aj5o7ZzlhgIiue0XB+gkjZw5gSQjxWmPX32n4YpqUxjczqt+X2uHlTeJTdOQcZ+IdM kdNgWJPbmIs0aXdVMTZ/052rR/yRYWbR+HaSyfcp884UaCqFC08kz8BZpCLvdynQ7s0d roGxypyZ0sHExUEVvF30J+B6Pm7bRRxEBr/JZN4MIfJKvC3OWJs5yJwsu43DkKhjaGdr INPMWOOBLBemXKmtgdDqxHEPi2AAailgNdGQPFcmLDfwNPvkLyKUJr7QwXUz8/MJGQxQ L8IQmZXeUGDHN5bYOon/eyJp34KYfq7Ln2hPhiwXGINwi0ZeYFPUmQEqrkznyOBGT4H4 iQNQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Hk4aC0tH6Ow9+MWQnDCC+Z39VSAJznNlMNZwsb7D46U=; b=B9NTa9r6ct6FAus3YZFFnHA0bO9bGKbgFxwJnxOWYm/6ouR1MCLv9bKw/Gbq+OC2zB TczrHQ2WlvnioyJprowOyqR34uOWSsjAai0dzw+H9uap0RKQTqAE6AwAugQVjfOQDb1q XQ6xml2zNJ8F4S6LgYEfDW8KCUJVvrovcRtLPej94a1do4q4fZKnWN1nrfGiZiq9Ttto 7ce7tO3GMUdAyU5mDz0HQinTjuMM8w8FFAiPcWmzyw8xiYk09cA4k+H4EVJYco9a3ugr f7zSQlIw0ulwZifOmHEkAHRenSHCVswd7dBmFljxJEPGD44rMkrSe3BD23BBcAvw6kF5 YQuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qEKoIH8i; 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 q10si1883805ejb.236.2020.11.20.08.23.22; Fri, 20 Nov 2020 08:23:45 -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=qEKoIH8i; 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 S1728980AbgKTQSV (ORCPT + 99 others); Fri, 20 Nov 2020 11:18:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:35000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729065AbgKTQSU (ORCPT ); Fri, 20 Nov 2020 11:18:20 -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 6C0DA22464; Fri, 20 Nov 2020 16:18:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889099; bh=BHZ6nUetqig2aNv0C70O6rfOF+ARiHZiTexSCji7bWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qEKoIH8i5FwAd5ly1vMetYZhFMu1kpGGqVE0UUn9liC3Pi2D6HO3lIEMkW8i9iaIP sNmP3yJA84yDGQ6X8WBlUdXg32+sjozEnLCoNRgkwkHHoCYqRV7xID/N1XiaadZ4jB 2FoLPoO6eL220nGxQEDKgQA4xBeZprhpFjIkGsag= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 10/38] ASoC: rockchip: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:16:24 +0100 Message-Id: <20201120161653.445521-10-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120161653.445521-1-krzk@kernel.org> References: <20201120161653.445521-1-krzk@kernel.org> 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 is not relevant here). This fixes compile warning (!CONFIG_OF on x86_64): sound/soc/rockchip/rockchip_i2s.c:569:34: warning: ‘rockchip_i2s_match’ defined but not used [-Wunused-const-variable=] sound/soc/rockchip/rockchip_pdm.c:463:34: warning: ‘rockchip_pdm_match’ defined but not used [-Wunused-const-variable=] sound/soc/rockchip/rockchip_spdif.c:44:34: warning: ‘rk_spdif_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/rockchip/rockchip_i2s.c | 2 +- sound/soc/rockchip/rockchip_pdm.c | 2 +- sound/soc/rockchip/rockchip_spdif.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 593299675b8c..39d7ce1f53a7 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -714,7 +714,7 @@ static struct platform_driver rockchip_i2s_driver = { .remove = rockchip_i2s_remove, .driver = { .name = DRV_NAME, - .of_match_table = of_match_ptr(rockchip_i2s_match), + .of_match_table = rockchip_i2s_match, .pm = &rockchip_i2s_pm_ops, }, }; diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 5adb293d0435..171b55e4010a 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -614,7 +614,7 @@ static struct platform_driver rockchip_pdm_driver = { .remove = rockchip_pdm_remove, .driver = { .name = "rockchip-pdm", - .of_match_table = of_match_ptr(rockchip_pdm_match), + .of_match_table = rockchip_pdm_match, .pm = &rockchip_pdm_pm_ops, }, }; diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index 674810851fbc..9869da7bccea 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -381,7 +381,7 @@ static struct platform_driver rk_spdif_driver = { .remove = rk_spdif_remove, .driver = { .name = "rockchip-spdif", - .of_match_table = of_match_ptr(rk_spdif_match), + .of_match_table = rk_spdif_match, .pm = &rk_spdif_pm_ops, }, }; -- 2.25.1