Message ID | 20230310214553.275450-8-krzysztof.kozlowski@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-arm-msm-owner@vger.kernel.org> 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 A7B84C6FA99 for <linux-arm-msm@archiver.kernel.org>; Fri, 10 Mar 2023 21:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbjCJVu4 (ORCPT <rfc822;linux-arm-msm@archiver.kernel.org>); Fri, 10 Mar 2023 16:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232354AbjCJVuI (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Fri, 10 Mar 2023 16:50:08 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E75913B949 for <linux-arm-msm@vger.kernel.org>; Fri, 10 Mar 2023 13:47:19 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id ay14so26006863edb.11 for <linux-arm-msm@vger.kernel.org>; Fri, 10 Mar 2023 13:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484766; 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=R8KkEKWZ0gN3SHohoHksswAukmLUtCvLSzW/QOjaikM=; b=qrYJxUKirtzDvIQKoRJxygRyf4FPSqFSi0XVFQVFP019hUJJhetCebgkKhN79vrs3W CIKol9vmqcKXFzhdYjb1UTjEWhmCgRQnV+R2cqHNKf+j8Mpyg7DhTibGCY0vHIrFfqbK MYdEtrAnXuCYjFCFYcqYzaJdXR+JsnR/WpDdA+37QliqOcRHKYHhRM2Opif9wIh+NaJk nH2yk34ZI9d3FQKuBY2OmYQHDrkb0n+JgCsnkEqH0/5fLxA61A6woskfsucn1TYakkKH 8fTp1iBBNuDjOcbESiG4v3E2y5Icd1y9w2E4PwTRKo37+BS1ebmSpl+iTtrjxBU4Yy0v 2w5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484766; 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=R8KkEKWZ0gN3SHohoHksswAukmLUtCvLSzW/QOjaikM=; b=x7jDenpSnHcYiQf84whhS9s9DduRnvOZyt8RYncDw0EUiDtyu9K/ZsjJBMDiVM3x8g n2YngwwbMSGAmvTIF61azcF4BKBeO16ujxVKxKLhPDE6GDOYMn+9AcGGVjvF9iDanIT4 eZcJXGF0AqxM0V/BQHjbDHK80R6zaGL22RVcOi3X8OECmG5qSSzIerSKbAR1QOECgk1D pOw+obNGNT4jrnfundd5m1bKjTDZI0nsVqWvytgk6aLzibK4LB8+3QpcC1c+0eEwR1CB iTSA+RGJYPs1/IkicqcTgZ44z+nACN4Wri8X9JrM5k1mADjfXjS51TLmJXl5Fg6EVa9H iJFA== X-Gm-Message-State: AO0yUKVKl1pH96jrVrOBkbs+mRb5Wo8sf2NLo/eKahmBVn6MYTA6613o 8dBLRgHf/nucksJ2EVYVetYJeJ4imzEyNefQCnc= X-Google-Smtp-Source: AK7set+C1404HGuunAfB3xCjsvxwrV5s95xwTHsN/mtfZYe+CBdiAMXV1CvssAAn+RAQCfGwoNG2gg== X-Received: by 2002:aa7:d646:0:b0:4af:601e:6039 with SMTP id v6-20020aa7d646000000b004af601e6039mr24224761edr.22.1678484766010; Fri, 10 Mar 2023 13:46:06 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:05 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Tony Lindgren <tony@atomide.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, 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 <krzysztof.kozlowski@linaro.org> Subject: [PATCH 8/9] regulator: twl: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:45:52 +0100 Message-Id: <20230310214553.275450-8-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
[1/9] regulator: lp872x: Mark OF related data as maybe unused
|
expand
|
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index e2a20d512152..fe80a5e20bd0 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c @@ -656,7 +656,7 @@ static struct platform_driver twlreg_driver = { */ .driver = { .name = "twl4030_reg", - .of_match_table = of_match_ptr(twl_of_match), + .of_match_table = twl_of_match, }, };
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/twl-regulator.c:553:34: error: ‘twl_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/regulator/twl-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)