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: 661992 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 436F6C6FD19 for ; Fri, 10 Mar 2023 22:02:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbjCJWCN (ORCPT ); Fri, 10 Mar 2023 17:02:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbjCJWBk (ORCPT ); Fri, 10 Mar 2023 17:01:40 -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 0ABBE50F91 for ; Fri, 10 Mar 2023 13:58:22 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id x3so26137271edb.10 for ; Fri, 10 Mar 2023 13:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485501; 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=Nbkbeg7+7A7jjsQfRRSWDnMVFoXB4vo4KsPrX6fzOdQtSajcivTyjTout0v66vEJBx wZc4wJG73LqQt17wKBkLNB1MjUt3X9xYjVt/jKrM8Lpw0oyz17b/WQvAti4V4sL+LJRB 9KzK6GvCQ0ILSVYbGFPcxbYuRvjrvL6w7Lv80wvdO+LOBCNDeILWHUAXXZXP2nIcC3HJ Y7cTWVzhb5INaTxGnHxu1YKiY9pl1OLLKBsHLw/G7fhCBpobP1kUYHXLVM/gkjJj/33w Q8fgrELKytWVBNETcpa87GhM6KzjhnPXMDzZzdFjB4Q8TXpF5/YYe+NKeLPXc8uLEsrl 4MJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485501; 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=fLORbfQR2MH7LihGv9rtRpj+tEiw5vls/hdG+H59dHauU+MrS7/BH1m3O9Hecws5Z/ G4gwfo55T+Um+YQeCgp5C1hQjpsZ0dmweF3YeOBPncxJEHlCdaJN2+RKVbEKDAL1qstS BNhdYDb2pCQHfVmxnq28k+ienYdqf9HVh9N+tdy/zxygba8brzojrhpwGkK9zoksibq/ YV7aONR749LBBcPs/BfJ3FFQkpIwr3Cx/dm9Hea3snzf0GXZyzSomCufjnuE2Rda0Al5 PkQo2JCNYJPmPc67h4u4xwPoBAJhJSPpzfUeHc1LmInXjI2HRtCvY4gsID6k4WVUYEC1 RXzw== X-Gm-Message-State: AO0yUKVudMURJDEi1LDML80m2JHtsoNnkd/LTd/bjm+s7VDr0JQojrxo yYOEg4ABho1nHuhjK6lXHepvMyqtGl1JIHdGUvs= 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-omap@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, }, };