From patchwork Sat Mar 11 11:17:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170790 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EBBD2C61DA4 for ; Sat, 11 Mar 2023 11:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Cw4+W9aPa5zzYbcxQu9NkwlO3EQkJrNMJGdgBRuFFf0=; b=i/KZ6GbBisbXLf +l+zy8nKrFo+95eRz0H1Cd/0mYtRYOzb66lnrOw8/2bkWvXXcCMgoe6BmkjDwOQC5F74rnbysnw5L WWN5gDn91pFj7Hcl8tXwQWUIuD7s0UYd04TdKEgGg01jONwHml6R49YbnX+X+r3mpMIBg8YQw+hfl bCvTHBAu81P9Bf6Fk9+ncelcMlHAeGaB1qaWQIFxDMiH+EVVe7ctGvlKK3QNMuJFTrQpLqnwHAB/O RjVTl5U8Kx3XtEy2Chf2ofM+UanHyb9P69xA+0i8RSnBE5fFQqYeqWEhJj3B3eFhVtIK50nogCHwF T+VZv+d7+YjD3rewMDHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxMa-000KdV-LI; Sat, 11 Mar 2023 11:26:12 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxEM-000GtG-Bs for linux-rockchip@lists.infradead.org; Sat, 11 Mar 2023 11:17:43 +0000 Received: by mail-ed1-x530.google.com with SMTP id ec29so30754507edb.6 for ; Sat, 11 Mar 2023 03:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533461; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=K1ep3IE3PEf+V+OZrFXRxt1O3+yONVLmI0s6NjZUlFQ=; b=rcBRanYBYO5g+ZPGYI4T03o5Nz0rKcOQIOmdHuU29YA/VsUMU8qjdiYlBwvyEZki2D VPzYmHnRMMUj0ttao2Cvz4zxr7dMmUDjDd5/SusHNrQCcmJKLtRtcYj2K6vZunc6FYAY ZQZb91Vdz+RWXQVA9LpaLjhsSo4wSMykftDYMbltvgo1/Qc6ve6XVzxcPnWgDVNI4nDI /Fpat5GSklfub9SP1WzZeau1AyV8isjpNzRYK2ti9SBO1DBxwWpq06HdwhsGVVPffMUU UrzBa+qWWIcDPzhz5mbXKVAivzAyoYe6rBxxJju9VglVm1fknEQJHMSNoOiVzgn9rPM0 o0Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533461; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=K1ep3IE3PEf+V+OZrFXRxt1O3+yONVLmI0s6NjZUlFQ=; b=gZqT8FUqBcWxW7D3j9HgCGC/omLkqcu0+KwpLjn4txOPsaCF7QYouxN1U9Dz08rInA i7PKsSkCUbBWdn6FPswKvGJKNTzoXS+HCPCcO/bsV19hOLYdP1ROJkcafHigwyTJ0G+z SkE5yisXjj+sNjZvM3+fMjwOhe/1+Rr8GF2ElfgFmmOJ/Ui9m/0pj17zWW7iyMfhMqPt ACYADKtUZQUazzmHqOfVf0WArCm6xqILZ+G6O4I+a/cOLwenyMKjGakvzdk/ldDTUDHJ XqaoR1IWk9V9bOX7xtauvzCWDKMckSGc8yb5pewsgtK9kAul3D1oapAUJkNzCvI20fUq 3mEg== X-Gm-Message-State: AO0yUKXd1biUNXINHaVs551UZkZQaP9DdXaiJ1Z725uvPLYhjk5PCQ7f XCH9Q00FzXxQeBfv8RMLt8+e0w== X-Google-Smtp-Source: AK7set/jS7PpALh4febSJl8zLhGg6wVyLUUjI10zB53ChUlpdcTmeu61y15+R/E1f45fjcVkWJwCVA== X-Received: by 2002:a17:906:434c:b0:908:6a98:5b48 with SMTP id z12-20020a170906434c00b009086a985b48mr27795110ejm.40.1678533461068; Sat, 11 Mar 2023 03:17:41 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id w5-20020a170906b18500b0090953b9da51sm971529ejy.194.2023.03.11.03.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:40 -0800 (PST) From: Krzysztof Kozlowski To: Jassi Brar , Heiko Stuebner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] mailbox: rockchip: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:17:38 +0100 Message-Id: <20230311111739.252080-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031742_449843_BE4F7B3B X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.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 not be relevant here). drivers/mailbox/rockchip-mailbox.c:158:34: error: ‘rockchip_mbox_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Heiko Stuebner --- drivers/mailbox/rockchip-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/rockchip-mailbox.c b/drivers/mailbox/rockchip-mailbox.c index e02d3c9e3693..5a4934d39ad6 100644 --- a/drivers/mailbox/rockchip-mailbox.c +++ b/drivers/mailbox/rockchip-mailbox.c @@ -248,7 +248,7 @@ static struct platform_driver rockchip_mbox_driver = { .probe = rockchip_mbox_probe, .driver = { .name = "rockchip-mailbox", - .of_match_table = of_match_ptr(rockchip_mbox_of_match), + .of_match_table = rockchip_mbox_of_match, }, };