From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53CCBC77B7E for ; Thu, 25 May 2023 18:53:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243142AbjEYSx3 (ORCPT ); Thu, 25 May 2023 14:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243807AbjEYSvp (ORCPT ); Thu, 25 May 2023 14:51:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5882C44A0; Thu, 25 May 2023 11:45:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78BDD60FA2; Thu, 25 May 2023 18:43:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6B32C433EF; Thu, 25 May 2023 18:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685040197; bh=AEgLpSXR2JytEFrd0+1cvpNsE8QXoxiVVhkuzKyF3J4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NBdFtn1TSjWNLQRvwXAp3VcW7nrA3va0bOYdZN6cUogniPTWRdfgk7pFtft8/iEbv jOIVAtaQOtVwyxyo6mlEkI25ArcSIpW7ei6xaPONrWR7qTpe6ltKBZN0FWe5DPHIxr naPXtesocCwZjLEmF4yJTh/fTK6OiPsShcCZXBtzgwLUNr3kGcaAZZeUIb6laZ5mTE ETS1f3MyuMQPMD2RotexqhjR//cG52XvnkMH01+COZJSYN/oxZ6iQF9JDROWk6nzXJ G9ITwIZxb2IuI6aHvfcVghAFcLcSM5MmnuGXKjzZ1FHlETVJ9QPcjd4WnArjVIxFMf 1SxSpyULTYnrQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Krzysztof Kozlowski , Mauro Carvalho Chehab , Sasha Levin , hverkuil-cisco@xs4all.nl, u.kleine-koenig@pengutronix.de, luzmaximilian@gmail.com, heikki.krogerus@linux.intel.com, linux-media@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 14/27] media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table Date: Thu, 25 May 2023 14:42:23 -0400 Message-Id: <20230525184238.1943072-14-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230525184238.1943072-1-sashal@kernel.org> References: <20230525184238.1943072-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krzysztof Kozlowski [ Upstream commit ae11c0efaec32fb45130ee9886689f467232eebc ] The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/media/dvb-frontends/mn88443x.c:782:34: error: ‘mn88443x_of_match’ defined but not used [-Werror=unused-const-variable=] Link: https://lore.kernel.org/linux-media/20230312131318.351173-28-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/dvb-frontends/mn88443x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/mn88443x.c b/drivers/media/dvb-frontends/mn88443x.c index fff212c0bf3b5..05894deb8a19a 100644 --- a/drivers/media/dvb-frontends/mn88443x.c +++ b/drivers/media/dvb-frontends/mn88443x.c @@ -800,7 +800,7 @@ MODULE_DEVICE_TABLE(i2c, mn88443x_i2c_id); static struct i2c_driver mn88443x_driver = { .driver = { .name = "mn88443x", - .of_match_table = of_match_ptr(mn88443x_of_match), + .of_match_table = mn88443x_of_match, }, .probe = mn88443x_probe, .remove = mn88443x_remove, -- 2.39.2