From patchwork Sun Mar 12 13:13:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 68323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp716641wrd; Sun, 12 Mar 2023 06:29:07 -0700 (PDT) X-Google-Smtp-Source: AK7set9OoP5VQaYZ4jNkf/PNcVlQDtN9EIkVxvIb6KuwzUl0q8Tdt6rCQj8kgRJjWdCZA4l/bJ5b X-Received: by 2002:a17:902:d583:b0:19e:8264:5623 with SMTP id k3-20020a170902d58300b0019e82645623mr31600207plh.64.1678627747127; Sun, 12 Mar 2023 06:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678627747; cv=none; d=google.com; s=arc-20160816; b=VFAyWkkl77mvZ5euvepb9Omw2k33vXvNtN8S81BBdkU8gr9BT7Mf6boYcNsB0q/I3q gSbHnlXFqjo5b8USfqUaaAgiysbUAzT6W6IVrJz7SZDjT61wjoE7J0aTlvR6cWu9JgeC f5Z1UXpKaZkxt/otLQyUV0LPj8BiJrpMieIJceFzMIWLTrRXxchwGixR9btBH1QR05Mc S4TWJvMfN2tm1LD4wULp1sV+qtCqx8cbTqCrO9q+tvRh3SvQpBAPy7xuN9/274sXON7p TVxztPyMrNP3FFd7nCm37Oyq2zOwmqD9tO+KO6JpoNN5JMTc5Tljsc2O1eO9AWnn+02n GgNg== 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=JSjnY2UnQpgl55C0x0EbScbpZu8mF5QaFScRi5nrBhc=; b=xTExMCnRbfSEdFUwleuAHEasdEegLVYcHtbXCXEdigkjBzlxJcO2A/hYSrSal0O6eY vnTi/zNlznptE7qO2JQXLejxFG69bVs3NMSnsQN0wV4RRrqHMv1BvglqvmtoJ92NG0zv WPJwWGr9k95rromxxyvV5yJBlJa62YWkTFnyy4O3dI3vZk2uMHE6JTriooDJ3PuOTYau f3O6N5n93G/OFPleYNw/qb/ts3LESNY6dgMiLj1Kuxd9ZAXYtkYYXQlNP+WE51BMtDt+ DsFnE9TN0OOoLcyldmCz005BUBTPCvSabPCw3N2s+7D8Jt5baATKPOLXTwxCH8JrPQBj z5hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dc26ZIuG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a170902779200b001a0433208easi704839pll.410.2023.03.12.06.28.52; Sun, 12 Mar 2023 06:29:07 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Dc26ZIuG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbjCLNPF (ORCPT + 99 others); Sun, 12 Mar 2023 09:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbjCLNOO (ORCPT ); Sun, 12 Mar 2023 09:14:14 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C5F515E0 for ; Sun, 12 Mar 2023 06:13:50 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id g10so9628317eda.1 for ; Sun, 12 Mar 2023 06:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678626827; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JSjnY2UnQpgl55C0x0EbScbpZu8mF5QaFScRi5nrBhc=; b=Dc26ZIuGptSW54drxYTvMfBZdnM7T2sqH0Ibrn8Isnx72gXt6vIiQrkYJ/ZXRTKeJu wXhScqvsjvycZ/sKKYPGCAOgFQPC157JwyaE2cQ5Co/gRVglSKhEm/qSXfGf8d6yTlWu NQEJdDvJriyTDULJvI7FxJ1RcMzG6pc3xa2jz7zclJQIsfcQW/69r3MrW5frrZZEiMUs 8GlhS8zDtnKywTPP15jmvqXI2iI0UA8V27Mp8bX/cYx8afzVMoEJ++NwRakEsYUy8UnR X9/AcWhpkrweQyKVI5gMG7fObgCTsIyIHVoFEj8R4G5wb79/ddG9Kmwm4kVDZBQihQMt 3fnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678626827; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JSjnY2UnQpgl55C0x0EbScbpZu8mF5QaFScRi5nrBhc=; b=VqqT9db6RzxQOAxDoCXxSt8++nLFRAns9DbCHwm3544E2FshPQhxWAeqImA50y4QBS CrPB+fLK0gLV1xquU3eNHyHXpE43Xxp8UJ0dYU5Rm1xo41bGMe1QbQv2O8r7RGyW93jV aashQE0YQQLIQGh1i6jWOvq3jjWf0k1ehUhDumFdApOGSUFsQm+SGOnx34ckPgsbutb2 qdvlrzTJ+9Md19IadfYS1bc7EkXFjpPR1NA9XCqSDtRpFOsG7NwXmMbfogtf6uJhooYH 3NhRz2T3apKZvLMubUzodxebpmn8vkxgTZ1ijtOHIpVJmiobW0ypG9rOLvdzreLvmkTm VrGA== X-Gm-Message-State: AO0yUKXViIwV63HAdgnMYsI/JzfMlWwKTCeXXaWt0k38Djbe8/J759kX i5f1Jy0RGB5+lrL54ksOoxHaIw== X-Received: by 2002:a17:906:db05:b0:889:5686:486a with SMTP id xj5-20020a170906db0500b008895686486amr37991558ejb.30.1678626827320; Sun, 12 Mar 2023 06:13:47 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id r19-20020a1709067fd300b008eddbd46d7esm2213279ejs.31.2023.03.12.06.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:13:47 -0700 (PDT) From: Krzysztof Kozlowski To: Joe Tessler , Hans Verkuil , Mauro Carvalho Chehab , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Thierry Reding , Jonathan Hunter , Manivannan Sadhasivam , Michael Tretter , Pengutronix Kernel Team , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Nik?= =?utf-8?q?las_S=C3=B6derlund?= , Rui Miguel Silva , Wenyou Yang , Bin Liu , Matthias Brugger , AngeloGioacchino Del Regno , Minghsiu Tsai , Houlong Wei , Andrew-CT Chen , Andrzej Pietrasiewicz , Jacek Anaszewski , Sylwester Nawrocki , Patrice Chotard , Yong Deng , Paul Kocialkowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , "Lad, Prabhakar" , Ezequiel Garcia , Philipp Zabel , Sean Young , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-rockchip@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 12/28] media: platform: verisilicon: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:13:02 +0100 Message-Id: <20230312131318.351173-12-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230312131318.351173-1-krzysztof.kozlowski@linaro.org> References: <20230312131318.351173-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760168768526139322?= X-GMAIL-MSGID: =?utf-8?q?1760168768526139322?= 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 not be relevant here). This also fixes !CONFIG_OF error: drivers/media/platform/verisilicon/hantro_drv.c:622:34: error: ‘of_hantro_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/media/platform/verisilicon/hantro_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c index b0aeedae7b65..4041b5b38c4b 100644 --- a/drivers/media/platform/verisilicon/hantro_drv.c +++ b/drivers/media/platform/verisilicon/hantro_drv.c @@ -1135,7 +1135,7 @@ static struct platform_driver hantro_driver = { .remove = hantro_remove, .driver = { .name = DRIVER_NAME, - .of_match_table = of_match_ptr(of_hantro_match), + .of_match_table = of_hantro_match, .pm = &hantro_pm_ops, }, };