Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp345189iog; Wed, 29 Jun 2022 01:05:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ux5xArdGtSdoI8cCa0DapuLliPRlBkvTFRtqtYwD0WvcdWbEP7NrXQOPuM+Ljhg7y4susD X-Received: by 2002:a17:906:5d0d:b0:726:be8c:804c with SMTP id g13-20020a1709065d0d00b00726be8c804cmr2056254ejt.712.1656489927910; Wed, 29 Jun 2022 01:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656489927; cv=none; d=google.com; s=arc-20160816; b=lL9dkJ+qrv5/Hlvad4BVLi0C/4Ivy6+c0nc5cfQwESxKFxm6TQbIMDfb9zPdieRsZv WKItKhoF3DoGXf3hfyU+soAfqgQ1lMU/piIa+G6bQStInYNfghMD8bs+dm9L7iMc2Xa6 vRnN6njiO21d+RwC4luDVS/Awcx8gpyNxV/3s9+UCtgdGKCetdcDB9GKJ+l8V7WXomzU ym4vMc8DeMR7kSiumS7R8SpzGaSmublKLjkUlvLHQF5co1eSQ6RBqGD4SO+0B2jCzfAl nP2r5BYuHta2SKZYYksWio/PkriEPpqAsHH1izXmePyrSW4E3ssEustubZ+4oIvhq9cv obfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=QH2e8YbYNE2n6mUVI4ZdSzcrVKNaUgrSOCe7/29sjP4=; b=SCYHECKo8U9K1zQfY0ouH47Y2tRXc10l7ya4tY62AeuU2dAAFwM6LFU5eepieR+DVk 36DuO5lXo3EBCtTEUqfI1qQtGSWqjrSRvbOTjzQCSgfrWe1a4sxK/W00vK49GZmy2XOP r5V4cq4FOVDbofVVbKWMVObV+hP7lBdTEmsFK5mzZsbwQQP/kwF2519X+NExyUvfc4wo e1MMYBuNHIFVXps07/JW1EWsbcHqwSZKyiMbITOC4rs35ibxrmcd8gUYi/w4IPBTVZSB nRGryhp51VkC2PR7t68ihVwq9gtfzWIUwM2Tw7FzICmegdTfxGmot9kK48wWail/KC0v mU9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="xpT/4lKU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne8-20020a1709077b8800b007123c7ecf90si4842019ejc.476.2022.06.29.01.04.53; Wed, 29 Jun 2022 01:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="xpT/4lKU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232279AbiF2HzX (ORCPT + 99 others); Wed, 29 Jun 2022 03:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbiF2HzU (ORCPT ); Wed, 29 Jun 2022 03:55:20 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3376525F9; Wed, 29 Jun 2022 00:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656489314; x=1688025314; h=from:to:cc:subject:date:message-id:mime-version; bh=QH2e8YbYNE2n6mUVI4ZdSzcrVKNaUgrSOCe7/29sjP4=; b=xpT/4lKUXX4wZrNtLbRIH8COCJ0/LlbXf/L66UAPAnbEjRA2RGC7JrOa 3nYDeWXlCH54mtkwqmRZITNQOmOt1sTNGoOsafDFSUJiKEC9pIDUsK47U ++uwAE3zZrFQMqlDTszKSPmRcGfznPVw4FsAngeWSxiH6+6ZPKpZUTTl5 M=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 29 Jun 2022 00:55:13 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 00:55:12 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 29 Jun 2022 00:55:12 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 29 Jun 2022 00:55:05 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , Linus Walleij , CC: Srinivasa Rao Mandadapu Subject: [PATCH v2] pinctrl: qcom: sc7280: Fix compile bug Date: Wed, 29 Jun 2022 13:24:50 +0530 Message-ID: <1656489290-20881-1-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the compilation error, caused by updating constant variable. Hence remove redundant constant variable, which is no more useful as per new design. The issue is due to some unstaged changes. Fix it up. Fixes: 36fe26843d6d ("pinctrl: qcom: sc7280: Add clock optional check for ADSP bypass targets") Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Stephen Boyd --- Changes Since V1: -- Fix typo errors in commit message. drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 5 +---- drivers/pinctrl/qcom/pinctrl-lpass-lpi.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c index b5d1b99..e97ce45 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c @@ -388,9 +388,6 @@ int lpi_pinctrl_probe(struct platform_device *pdev) pctrl->data = data; pctrl->dev = &pdev->dev; - data->is_clk_optional = of_property_read_bool(dev->of_node, - "qcom,adsp-bypass-mode"); - pctrl->clks[0].id = "core"; pctrl->clks[1].id = "audio"; @@ -404,7 +401,7 @@ int lpi_pinctrl_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(pctrl->slew_base), "Slew resource not provided\n"); - if (data->is_clk_optional) + if (of_property_read_bool(dev->of_node, "qcom,adsp-bypass-mode")) ret = devm_clk_bulk_get_optional(dev, MAX_LPI_NUM_CLKS, pctrl->clks); else ret = devm_clk_bulk_get(dev, MAX_LPI_NUM_CLKS, pctrl->clks); diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.h b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.h index 759d5d8..afbac2a 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.h +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.h @@ -77,7 +77,6 @@ struct lpi_pinctrl_variant_data { int ngroups; const struct lpi_function *functions; int nfunctions; - bool is_clk_optional; }; int lpi_pinctrl_probe(struct platform_device *pdev); -- 2.7.4