From patchwork Fri Mar 10 21:45:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661712 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 A09D4C6FD1E for ; Fri, 10 Mar 2023 21:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232245AbjCJV5m (ORCPT ); Fri, 10 Mar 2023 16:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCJV5W (ORCPT ); Fri, 10 Mar 2023 16:57:22 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FE7F134AE0 for ; Fri, 10 Mar 2023 13:54:10 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id a25so26363859edb.0 for ; Fri, 10 Mar 2023 13:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485201; 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=KcJ/60CiNR3l+Pd6V0GQSncdZhxdS57tle43QWwe+tY=; b=ITAOToTfMDXBRrFa2m0lfM3+yTerBwn1QXaKvYlTZs3c0rravYhJ6iQDnf/vRDJT8Q DITIV6IPUIR8Jw0NLy6lj+H3ELKUZzutIdnG+y93lh1FClti1vIHZCUJLkxNQ+hKxoGX mOV6FNa68EbOg0wFsOqBMDwIuxzY4vTvfneFm5b5xT5wPBTsCQjATzyx4vcqGhjDS/0p vmoyuSp0wHnjp3yEaGtLG2HM/D05NmBsySEmJcBkkMdDA1Srm7iDndozCRQVlE9y8Ckq CfQJ6kpTgXbf8s2obRkyfaNyrXRKJf4tZRnaOI4R3YiJr3WAoUye00jHer82RxCQpWV0 TxYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485201; 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=KcJ/60CiNR3l+Pd6V0GQSncdZhxdS57tle43QWwe+tY=; b=aSnrNH5JtwIVzTVFUYqrfFZQ7nZki8pZnqYW8r/+Bampxug4NmT4t1uPrCK9KDhtLN 2X0ee1JVSKS4X+T2PL/CqhLiRAP5FrsdtcJKX8xgmdGmjeiDUInbSOphyxsSX8ZdPdS7 PiYp0+KHLGJm/qwX+M0g0xwsZIq4hV5FpEUA3pteHmlXf7QJn1zcPV6vUf7KDhLBMOcS wvkkg4SqfXdIkkaeG7P6I9o+csEcvurczDr4cttiOMHM4SbgCuZ4r7uBjpE4gFVIycLE sKYBz6OMg7DkNHLcGnQgHlFokt5axAqfvqwYoWkW+pxcMWJROqsW2FoRvxFS2h+1Hwgp 1pQQ== X-Gm-Message-State: AO0yUKX8vO9kOmP0DY02nLwEW6Xqceo3uqqqtVLhA9dvvPqfmp3MMMxe bpt51kbDVX16lNv0u8dE+2x4AXTiAOPVAr5II3Y= X-Google-Smtp-Source: AK7set9OWMBah+XLayBu0sHj0HkkG9xbD8r5gmAQE2k0KYWypz08rz5B2gUGv07SfC4WtPbAYwCNgQ== X-Received: by 2002:a05:6402:654:b0:49e:1f0e:e209 with SMTP id u20-20020a056402065400b0049e1f0ee209mr4078070edx.10.1678484763064; Fri, 10 Mar 2023 13:46:03 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id u7-20020a50d507000000b004be11e97ca2sm471873edi.90.2023.03.10.13.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:02 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Laurent Pinchart , Matthias Brugger , AngeloGioacchino Del Regno , Tony Lindgren , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-omap@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 6/9] regulator: pbias: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:50 +0100 Message-Id: <20230310214553.275450-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> References: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 is not relevant here). drivers/regulator/pbias-regulator.c:137:34: error: ‘pbias_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/pbias-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regulator.c index 4eccf12f39de..4ce06072f3b5 100644 --- a/drivers/regulator/pbias-regulator.c +++ b/drivers/regulator/pbias-regulator.c @@ -231,7 +231,7 @@ static struct platform_driver pbias_regulator_driver = { .probe = pbias_regulator_probe, .driver = { .name = "pbias-regulator", - .of_match_table = of_match_ptr(pbias_of_match), + .of_match_table = pbias_of_match, }, };