Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8387432rwp; Wed, 19 Jul 2023 09:06:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlHL/TZsXsL5zqmeTETWGcqsY2S/MsI7lpadPmcXH7BL5DLl62XU5y5N/5kvt+hyeUMxlG5H X-Received: by 2002:a17:902:aa98:b0:1b8:c6:ec8f with SMTP id d24-20020a170902aa9800b001b800c6ec8fmr2541829plr.46.1689782762501; Wed, 19 Jul 2023 09:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689782762; cv=none; d=google.com; s=arc-20160816; b=Z7D3p7nsmBuuLMLDUlgHBR+3jmptIWqkncmVmACSZVhXRpV6uJ9g4lYxMFgMs1KKFC gjM9fcaN9cojy5CVPeCYbPblFypOJjOo1afWrvpR3wD16Wn/ZsipJx3qwzmOJRUyin6N ITLpdXlqyGKgfnEzP1I4Jz2qDnOR+Jbr69yPoulj6uG/EQAkr0Y9L8Imk08HGcoTZYdV 4/SgWmRAGdmxRr7lVnbJVgSzHpP/ff6tdm6pYkrxNtvS45RjUJaRPz/NYKLM+7qpMRvj K+G4hXwZFL2EozgTl8PDgT/b9i/x3lur9lO2DZndTRUaNhNkbCFT6Fvt38dkNa/CI2f9 5Gsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1Xkqjte7KhWQXKCkHstDR8oKb3BT+pXUm5XUiulIVww=; fh=dV7QIJwPEXyZldq/35teVm/nYFGskbyR46jCG60t4m4=; b=ePCt525pSwwVpLyJ6lkLHKXzM9W0VapSWLbupkZLQr293z2CM3UQer+L/RFP5BN935 96hbIO9qWeiS7W7pX9vHlubgJvX1/DRYh7EXUGfSLWvJb9df3HIgkH3b8lqxH4jyMaal KmLIi5R5EJUXQDw8ffsbBqzfIHA/REhYGGOlS1weyTNW9zz64NLMudB733kRoCwhEaHQ VbxM5xBzgKTIHRpNFgDOgamQwBCH/gXlG4sBRPwLExMsyo2L3Uz4Pe4l1ClKV+XprBzR kEy3I/5rTW9HqcRcgqJnbA4aKQgQG+h5ip7G6mps939AWEt2zFLhg/NOsVTms2AZJHXQ j4TQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a170902cf4600b001b81e6ce809si3510239plg.5.2023.07.19.09.05.42; Wed, 19 Jul 2023 09:06:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231827AbjGSPcr (ORCPT + 99 others); Wed, 19 Jul 2023 11:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbjGSPcq (ORCPT ); Wed, 19 Jul 2023 11:32:46 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E0B3BE; Wed, 19 Jul 2023 08:32:45 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 433EB2F4; Wed, 19 Jul 2023 08:33:28 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 671393F6C4; Wed, 19 Jul 2023 08:32:43 -0700 (PDT) Date: Wed, 19 Jul 2023 16:32:40 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Cristian Marussi , Viresh Kumar , Nishanth Menon , Stephen Boyd , Nikunj Kela , Prasad Sodagudi , Alexandre Torgue , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 11/11] cpufreq: scmi: Drop redundant ifdef in scmi_cpufreq_probe() Message-ID: <20230719153240.khiuqehl2r2dd6l7@bogus> References: <20230713141738.23970-1-ulf.hansson@linaro.org> <20230713141738.23970-12-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713141738.23970-12-ulf.hansson@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Thu, Jul 13, 2023 at 04:17:38PM +0200, Ulf Hansson wrote: > We have stubs for devm_of_clk_add_hw_provider(), so there should be no need > to protect this with the '#ifdef CONFIG_COMMON_CLK'. Let's drop it to clean > up the code a bit. > > Signed-off-by: Ulf Hansson > --- > > Changes in v2: > - New patch. > > --- > > drivers/cpufreq/scmi-cpufreq.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c > index b42f43d9bd89..ab967e520355 100644 > --- a/drivers/cpufreq/scmi-cpufreq.c > +++ b/drivers/cpufreq/scmi-cpufreq.c > @@ -326,11 +326,9 @@ static int scmi_cpufreq_probe(struct scmi_device *sdev) > if (IS_ERR(perf_ops)) > return PTR_ERR(perf_ops); > > -#ifdef CONFIG_COMMON_CLK I am not sure if it is no longer possible but at the time of addition of this it was possible to build with CONFIG_COMMON_CLK=n and any error was reported[1] I didn't want to add Kconfig dependency as this driver doesn't use any other clock apis and this was added to meet some OPP(?) requirement IIRC. We can drop the call to devm_of_clk_add_hw_provider if that is not the case. I need to check it again as I can't recall all the details right now. -- Regards, Sudeep [1] https://www.uwsg.indiana.edu/hypermail/linux/kernel/2012.0/04953.html