From patchwork Sat Mar 11 11:13:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662277 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 46FD2C61DA4 for ; Sat, 11 Mar 2023 11:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbjCKLNn (ORCPT ); Sat, 11 Mar 2023 06:13:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbjCKLNW (ORCPT ); Sat, 11 Mar 2023 06:13:22 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A80A12CCB for ; Sat, 11 Mar 2023 03:13:14 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id cn21so527621edb.0 for ; Sat, 11 Mar 2023 03:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533193; 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=Aq77vQWPmqN0P1uClqWDA1EHy5/jRECv7qlu+zNRs6E=; b=wZhAnnIZeT7MXdc2zrQmCUUtQSrHgd18EBJULNpexDsCm+kAnXxTsna2cYJudLEItk EVVR7jB0HWSsrGexv1t8WRVbDv5wiS5X//Q0Q9UMBICgstFHLykEeIsMc6nwZy9fen4c faYhgqvPZW1XIDNVoq6yAs+68/2LWZRambKNXfznY0FiBh5/u7OEEQjVU3BHVid3UbSA i4E/T8AhOCumDQaXRrE4rCMBDIWT83vVj77CAWwhZhc1AfVj2SKQQVno+4LUVO4sqpa3 AauuUHbFYJBBWl52L0yEnst547gn9FOMwbwMk80vK54jc9rhgbqlUzyOp0Iwc6+g4UB3 tAXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533193; 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=Aq77vQWPmqN0P1uClqWDA1EHy5/jRECv7qlu+zNRs6E=; b=NlHG7fOvNL0ooqcLmuMDkvvJGSOGSu+WbVKc+cK8aZXKM8EoRRLn84QDpyui7+RA1T 578ZpgkV80+iKdbZXMgLjQlR3DCbpnQOUAqsZiGduQidn1DJLgfZggkatDTcWj78ULaA skoGIG3CNKlvoIP07g82kcphBAqlxDN72wKFwg2er8NcmswznUloapyHycwVDQV4/YX5 p2QE0eOwMPsasXoF9zhdkNQflIYGjtHY1xkWvyxtUnud0odn4cRVwgulYF0PXyiy3O5E wx+11qbMiS/RFAGrpngTIz3cwUfXAOHrjCpDnKIkqTFVcpgcoYuWeqo8tnKDQOAJyzID Irrw== X-Gm-Message-State: AO0yUKVvFP62p/8Z75FJUuggBGmznlVvQ79IE31DBlQSxltLk+FAehZi bndaB2BAUHw2S5U32pk0XrUDdw== X-Google-Smtp-Source: AK7set+/rTdizsglqbDuXDqPYxb8+Sz15WC2l2nH3OBdecIwjfF3xVJtNxtd/pcpj3MJ2dwtHbkMww== X-Received: by 2002:a17:906:52ca:b0:8ae:b008:9b5a with SMTP id w10-20020a17090652ca00b008aeb0089b5amr27143452ejn.69.1678533193246; Sat, 11 Mar 2023 03:13:13 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:12 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/8] gpio: visconti: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:03 +0100 Message-Id: <20230311111307.251123-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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/gpio/gpio-visconti.c:187:34: error: ‘visconti_gpio_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-visconti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-visconti.c b/drivers/gpio/gpio-visconti.c index 5e108ba9956a..10d9de41f29b 100644 --- a/drivers/gpio/gpio-visconti.c +++ b/drivers/gpio/gpio-visconti.c @@ -194,7 +194,7 @@ static struct platform_driver visconti_gpio_driver = { .probe = visconti_gpio_probe, .driver = { .name = "visconti_gpio", - .of_match_table = of_match_ptr(visconti_gpio_of_match), + .of_match_table = visconti_gpio_of_match, } }; module_platform_driver(visconti_gpio_driver);