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 067C4C74A4B for ; Sat, 11 Mar 2023 17:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbjCKRe2 (ORCPT ); Sat, 11 Mar 2023 12:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbjCKReE (ORCPT ); Sat, 11 Mar 2023 12:34:04 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 845E652F49 for ; Sat, 11 Mar 2023 09:33:26 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id ek18so1900110edb.6 for ; Sat, 11 Mar 2023 09:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556004; 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=7jJaYEyuuO5/7ZmBgza2JAkACKERJJ9QG1PA2csTvP0=; b=nHDAc+H0npIh3vNJGeXviuEBpr+1PK07dBrn05EJBUvz2aFDMgJvOjGJhwJ9LGamHz JPRD0Qb8tsb1S9PolfMXoljCE/2hA+C7FdiAGb7bOL6xQLuew8ApejQSHL7of3r2k3uD qK5TwReucG8XzqIaJZuWdsTWvtouWPD0GzHEOy8wh2MPUi05s+6ACQxR2ezI1T9bsZKO LIcnlvavkjOzOPsKSD5UU5of0tR7Jf0OFrPz6EWp3ZYdyW2KyiOPQFGgyzIr+1hI6mo4 oVrQ/oE8Gc1Lp8IqRnERs2I/0QdhayI9u0T/gXiWG3FOOQB24F32ZuC5aTdKuVBuX2td iM9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556004; 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=7jJaYEyuuO5/7ZmBgza2JAkACKERJJ9QG1PA2csTvP0=; b=pO73ju1GuS7VHaHM4A5xZk4IaeV4IZqeKKHVedN4UI8W3SJc5HSwv1hftDv2CLONPz iAP1avChlTDkwbX3hmT5OMGsL8YSf5HOF3PVq0ERslPeZhaXWzvkWbrB3lSZiddC7b55 MPBN26A3cypjGuMGA8i3IDsbhY5pRdwiNxVtqCjWTvnGKFvgqJsjdWL+JIy6nQZYqtO6 aZzvgB9GICBY9od2FnUC3RbIdo2Ny30MDwYIDH2a/vXDamN9qb9gCR7ncKLGpo0kgR6g Ki7IB8aeX+1jU7+Fi9cxBfWjnoIGQBFIQNcC4/FRAXEEacs7x4nMXJSfpams0hL93HLM pawQ== X-Gm-Message-State: AO0yUKUh241IMVZnAKLOCA/PIcQjncOIdaxliD11toYyX0wI+ttPqEGa HsIPpWNp75tISGlmOjAY6TjGfQ== X-Google-Smtp-Source: AK7set9vWz++lxxJIbYAQ4X5NHrLZPNd1F+ADuCr+5KXfAjrxgYiw7uxgr7b8z1+/jim/f76Mp3bQQ== X-Received: by 2002:a17:907:6e25:b0:878:54e3:e3e1 with SMTP id sd37-20020a1709076e2500b0087854e3e3e1mr35447489ejc.73.1678556004615; Sat, 11 Mar 2023 09:33:24 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:24 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 10/12] net: ieee802154: ca8210: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:33:01 +0100 Message-Id: <20230311173303.262618-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/net/ieee802154/ca8210.c:3174:34: error: ‘ca8210_of_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/ieee802154/ca8210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index ed6cb79072a8..65d28e8a87c9 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -3181,7 +3181,7 @@ static struct spi_driver ca8210_spi_driver = { .driver = { .name = DRIVER_NAME, .owner = THIS_MODULE, - .of_match_table = of_match_ptr(ca8210_of_ids), + .of_match_table = ca8210_of_ids, }, .probe = ca8210_probe, .remove = ca8210_remove -- 2.34.1