From nobody Tue Feb 10 00:44:46 2026 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 CE595C7EE26 for ; Fri, 12 May 2023 16:45:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbjELQpa (ORCPT ); Fri, 12 May 2023 12:45:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjELQp2 (ORCPT ); Fri, 12 May 2023 12:45:28 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 433D79EFA for ; Fri, 12 May 2023 09:45:25 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-965f7bdab6bso1717085566b.3 for ; Fri, 12 May 2023 09:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683909923; x=1686501923; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DzkqAQLe+Gk5RNSaFXPZZ/iJILetoG15+4I/37fqe1o=; b=gFA9k9uHBjkAZX78IGqJYhI/+fRUE00vuVnpTz9gC2avgrz0tpvMje2QY/rjdS0532 M7qsBuMpYPcLpuWFr5TgLmNL5U8qgOkAZ60h5xTfJ5nly5LwyTk/1quJU/goLo+DkKkB kUFVAXJNwWU5iARh5wCwRkVqsiES4gXBo8QV41ojlZgBT5pl7LwClx+ueoCaX4N68uM+ ADPahOfldV6YNsXMPsr22Nd5ghG+VTRs8w4o5yTucoRMKviSrnwI1O42BBl0M6Q/hMex 1Bh3p1MXU/szPOfaiC0fKSCJUY7tofIsQQC4u26hF1kBbP56NwSylhkIwkvY/ykFnfbM WCVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683909923; x=1686501923; 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=DzkqAQLe+Gk5RNSaFXPZZ/iJILetoG15+4I/37fqe1o=; b=ju9BJVXr2/Yo0bc6OVdRSsbn3LcHMZTDXMOoxUlxR5BQyacCDopo7SQn2CCaaT3odo uxUoxCEDSnPpbdozF3wwcLT/IGItMlKzSWJPwc9OtF6BoVJ7N23A+sq4TBivcJTmPHUf dqE7pwMrgpYM26WtHk+QRkq1HaiKlAJT71Qiog6pNsCIt+6eOvm2N6dGJJMygsWerRhd b/qiVM6ia9yYGkLVzQAmY83i9MYIsMU/elDWbWDCdjr9KBLEgp6hO4S/yZTRdS+zejNz KRaXQPtYDWeCjsd7blon5aFA/cEdSmyJN34SvNoGMk81DqkS/GVerNE2WIPjBWER4EEN tDbQ== X-Gm-Message-State: AC+VfDz8FG46k3p3hQsRO7CLMOL+sJWFF48gMFUD4oBemW0hk0tcNBtW /iE492HedaqWLtdYj/+jeslSQQ== X-Google-Smtp-Source: ACHHUZ6ywBP3RpMKkiYl1efT27yyOsd3QbfuA1004ctOSmXIwJy3JJFnSf4kAhBgqGhhf1JTyVjhAA== X-Received: by 2002:a17:907:9686:b0:966:65ee:beb7 with SMTP id hd6-20020a170907968600b0096665eebeb7mr19501763ejc.71.1683909923616; Fri, 12 May 2023 09:45:23 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:7ede:fc7b:2328:3883]) by smtp.gmail.com with ESMTPSA id x4-20020a1709060a4400b0095ed3befbedsm5599306ejf.54.2023.05.12.09.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 09:45:22 -0700 (PDT) From: Krzysztof Kozlowski To: Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , linux-omap@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH] hwspinlock: omap: drop of_match_ptr for ID table Date: Fri, 12 May 2023 18:45:20 +0200 Message-Id: <20230512164520.212312-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 might not be relevant here). drivers/hwspinlock/omap_hwspinlock.c:164:34: error: =E2=80=98omap_hwspinl= ock_of_match=E2=80=99 defined but not used [-Werror=3Dunused-const-variable= =3D] Reviewed-by: Baolin Wang Signed-off-by: Krzysztof Kozlowski --- drivers/hwspinlock/omap_hwspinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwspinlock/omap_hwspinlock.c b/drivers/hwspinlock/omap= _hwspinlock.c index 1fb3a2550e29..dfe82952671b 100644 --- a/drivers/hwspinlock/omap_hwspinlock.c +++ b/drivers/hwspinlock/omap_hwspinlock.c @@ -174,7 +174,7 @@ static struct platform_driver omap_hwspinlock_driver = =3D { .remove =3D omap_hwspinlock_remove, .driver =3D { .name =3D "omap_hwspinlock", - .of_match_table =3D of_match_ptr(omap_hwspinlock_of_match), + .of_match_table =3D omap_hwspinlock_of_match, }, }; =20 --=20 2.34.1