From patchwork Fri May 12 16:45:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13239529 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 D9434C77B7F for ; Fri, 12 May 2023 16:45:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237287AbjELQp3 (ORCPT ); Fri, 12 May 2023 12:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjELQp2 (ORCPT ); Fri, 12 May 2023 12:45:28 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4783FA272 for ; Fri, 12 May 2023 09:45:25 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-50bcae898b2so17992291a12.0 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=cXTv/txz8cL/f8TZtTM1pmZ/eVhqruUCiB6xs1n6jj5aqBA73ZbgsV9QnLDd8RpntX 1TKfiOLKg8BnTx4o9i5LftypZbuN/ES/Anjvk2wckVUIQHDkhNRsVpdgv5bQ0KtKyOX3 REq7Vf1Mj8aL1QEJPR1O6450Uw3h+xH5bevxfXpOV3jUOx2CmyTbmXvi7s7fpuoHuMFV u3A+5ecAJ0ebmc12ZLicgW1bOFgX8xoL5gHMSGrhKgwU9J0p3ZaCMbe6x5ZxkSyOF+yS dOGb6WQ2X9jfFksIO3pYrsAoU5U6h97hlx+YKGJDAsjysZvS3QZ9x8oL4kKfo9J17Yoa dd+w== X-Gm-Message-State: AC+VfDwv/r8G1oV1TanHgm+2FWF1sVMvTZCqfWsrjA859e12cvxFJaf7 ERXhvX4oRK1WVWurfAyV8NtTCg== 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 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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: ‘omap_hwspinlock_of_match’ defined but not used [-Werror=unused-const-variable=] 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 = { .remove = omap_hwspinlock_remove, .driver = { .name = "omap_hwspinlock", - .of_match_table = of_match_ptr(omap_hwspinlock_of_match), + .of_match_table = omap_hwspinlock_of_match, }, };