Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1389254pxb; Fri, 20 Nov 2020 08:20:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHhOS1g9h7P1iGZESiFS8CPxzuc3SRRzRyi2kgs3k875MY+ds1Dj+NvX91jHddabOMMR4h X-Received: by 2002:a17:906:85c9:: with SMTP id i9mr7133697ejy.487.1605889201215; Fri, 20 Nov 2020 08:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889201; cv=none; d=google.com; s=arc-20160816; b=d589+sHe9f5dC1222/N8Ffp81cMXCSuux/9+7Wk/pxb/FbK8FqaWv1/u5JkQEp4ze6 EcycByWutEWGI+tId12nu7NQnQKMjOHO6E5muZvjJPPbXsRPj20IEcE7jPvQs3/1DGxK qvnSaMjIXTsIKSKDWtb4TIy+UOq7khxK80lg7peovWzt2CMq07T4MRGbYhqVMKQmkNqp eIJpsVFMXeOzO7Vu3IP9gBOeMQgBGlBayBY2hu0pXeJbHI3CJCJ4OIRkS7sBF25KnE05 H2LAmABoh3xChbPoOoEdPeWof7NFMGe8lyA+4jF1phKSMpoKPSOjdMkPhxy36nJYnDVl p/RQ== 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=cf/uBBoHPXZRHTYbFQHQLHO0UWl8607sPqSzzF9KHm4=; b=RDP2hEIQogxZJANVpm9cCbCm9bG6XLpsSD7otFAFiCguWPSwmbLfY3BuvsiucGPpx2 cw1Lj0b9gqAKQEXl5jJWzTSLRO7YaXAz0fZBrb5UUB5TvSRFt/yPu4y99YjqOE8HgvF9 Hk38CUuT+dP2aSzbY6T8aUoZOZnQctzJozeHGYbeKIpTKiKhcxSFZH6wzoHCLZbB0yb8 9036FzzPWR18e9HG5r8wCdEzaBZH4M2lM48RsiSdt9JbgBvuJeq76oODu6Jmc0ukQp9A 8qBlGHeg0fRGqBAEZDFk04aBc0FtDmf9KY1ITEBwbZs1xjiLTdYmEpYbbkwrmsSzspeB NKeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jnVEq6LB; 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 c19si1982825edw.66.2020.11.20.08.19.36; Fri, 20 Nov 2020 08:20:01 -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=jnVEq6LB; 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 S1728899AbgKTQR4 (ORCPT + 99 others); Fri, 20 Nov 2020 11:17:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:34406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728235AbgKTQR4 (ORCPT ); Fri, 20 Nov 2020 11:17:56 -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 223BB223FD; Fri, 20 Nov 2020 16:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889075; bh=AY66yUY4/KsmbzR9anhXbPdKuRXMHxLghrRWY/tQB1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jnVEq6LBEMyL9JgrvA9LtzSBOkbMQW8wU08A5SuBqp9FDA07MB9uoMMYIBpq2hx7U Q03fuBEr4FhqIHV/nNHQvjRaBnhr130kCsM0hDRBR4ixKB30S0I40EJk+Bbcvjq8A7 /XH3Zw3NIL88GJrpp0NHza/nHy7MtbZElXjK71FU= 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 , Kai Vehmanen , Kuninori Morimoto Subject: [PATCH 03/38] ASoC: inno_rk3036: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:16:17 +0100 Message-Id: <20201120161653.445521-3-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/codecs/inno_rk3036.c:470:34: warning: ‘rk3036_codec_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/inno_rk3036.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/inno_rk3036.c b/sound/soc/codecs/inno_rk3036.c index d0e8f0d2fbc1..af74251e08b0 100644 --- a/sound/soc/codecs/inno_rk3036.c +++ b/sound/soc/codecs/inno_rk3036.c @@ -476,7 +476,7 @@ MODULE_DEVICE_TABLE(of, rk3036_codec_of_match); static struct platform_driver rk3036_codec_platform_driver = { .driver = { .name = "rk3036-codec-platform", - .of_match_table = of_match_ptr(rk3036_codec_of_match), + .of_match_table = rk3036_codec_of_match, }, .probe = rk3036_codec_platform_probe, .remove = rk3036_codec_platform_remove, -- 2.25.1