Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp710384rwr; Thu, 20 Apr 2023 05:35:08 -0700 (PDT) X-Google-Smtp-Source: AKy350b+1T3dD6lmwoRroyvu69kmviW0hGGlKwvNkJclDk+S/ot/YTT9B491Ho+kjYh17BIGFgFL X-Received: by 2002:a17:90a:7004:b0:247:1e30:5880 with SMTP id f4-20020a17090a700400b002471e305880mr1424812pjk.38.1681994108621; Thu, 20 Apr 2023 05:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681994108; cv=none; d=google.com; s=arc-20160816; b=fhCcliyrXBxMEaDuW66hjIdhvX5WMw5jXa6HWZVF9jQIt3QadTD47zsmv0xH1oLbF6 BAa1DXnipd2YPKJgfviFfj8xFtZdhToZb/i4Ya9JUDbIx4rgkrTR66+JGOmbSgghV3CL GyZ4KjhvWySO/UuVoqPARpk1vJPdOF0t1qUZlirrgq7Xo44++Elaq4EqPJzW+WKj4SVt 6t0ngBnNPxRIN8F90znchZnOuKaPtEKD3e2PWsNVAkg/67f9uXgwKVAh5vSwdp/WhCvq X6W3JMSSyDt9Z1eqS+MlYD0IZZkiC1Dyk8sgHJB9VQQHONmeHkGmMN0rdkwx3PrYYFhM ITLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fb0VdJBs/6V8Ibz0yc1qYJ+5jAg/m7Cy7/Q+zts3yyo=; b=QixnJjzWh4PGGgULYKlnDkImIkjJ6DiPWlyb79RCsk9KIWLYZztEbhN9gyA7e4RvT+ bemMPQVPh7jxW5azhT13zzhlbgI14wE35n+uAkEM+c9e35MOzVzlTfqsweWW/YiaI5V+ /E7eUwfzzTcv8D+qBBk+vpfkH6ShkpMTejInJoIG3VXyIEIUlOq00cxAVIm3yaoYVNfO 6VQ8Y44QnkIVGvz6kkhtY/upbjHZ8LTvQQmodpJfeNtp3GS/iXa07u2JMF4fCq+Yo/4k qNTdkt/KOQTvOreCV7s9Tz03BTVYAS/XPZ/iMVrocD8PyltzHmVKnx7DdMfITc6sek79 FIbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TRqImYGX; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a17090a4d4700b002467a036c62si1795286pjh.45.2023.04.20.05.34.43; Thu, 20 Apr 2023 05:35:08 -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=@ti.com header.s=ti-com-17Q1 header.b=TRqImYGX; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234668AbjDTMQi (ORCPT + 99 others); Thu, 20 Apr 2023 08:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234127AbjDTMQh (ORCPT ); Thu, 20 Apr 2023 08:16:37 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE4710B; Thu, 20 Apr 2023 05:16:36 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33KCGPol015336; Thu, 20 Apr 2023 07:16:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1681992985; bh=fb0VdJBs/6V8Ibz0yc1qYJ+5jAg/m7Cy7/Q+zts3yyo=; h=From:To:CC:Subject:Date; b=TRqImYGXcpDAO8mQzMWSzD9OZx2uPBhGoHDieUJMx+9znZFksF9vXhLRunodUFW9V Btbn0A7T/ZusPnjmFUiknNjFin9hDxkw3f4SfOpTle1j7OMdVXh0XRMZtdkHocbt1a iwHmNpdkVj61MqLnGS/7cUZUtrFS20B0BfE2EUxY= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33KCGP7v008010 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Apr 2023 07:16:25 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Thu, 20 Apr 2023 07:16:25 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Thu, 20 Apr 2023 07:16:25 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33KCGO9q089893; Thu, 20 Apr 2023 07:16:24 -0500 From: Dhruva Gole To: Mark Brown CC: Dhruva Gole , Vaishnav Achath , Vignesh , Apurva Nandan , , , , Grant Likely , Tanguy Bouzeloc Subject: [PATCH] spi: bcm63xx: remove PM_SLEEP based conditional compilation Date: Thu, 20 Apr 2023 17:46:15 +0530 Message-ID: <20230420121615.967487-1-d-gole@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 Get rid of conditional compilation based on CONFIG_PM_SLEEP because it may introduce build issues with certain configs where it maybe disabled This is because if above config is not enabled the suspend-resume functions are never part of the code but the bcm63xx_spi_pm_ops struct still inits them to non-existent suspend-resume functions. Fixes: b42dfed83d95 ("spi: add Broadcom BCM63xx SPI controller driver") Signed-off-by: Dhruva Gole --- drivers/spi/spi-bcm63xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 96633a0051b1..99395932074c 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -617,7 +617,6 @@ static void bcm63xx_spi_remove(struct platform_device *pdev) clk_disable_unprepare(bs->clk); } -#ifdef CONFIG_PM_SLEEP static int bcm63xx_spi_suspend(struct device *dev) { struct spi_master *master = dev_get_drvdata(dev); @@ -644,7 +643,6 @@ static int bcm63xx_spi_resume(struct device *dev) return 0; } -#endif static const struct dev_pm_ops bcm63xx_spi_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(bcm63xx_spi_suspend, bcm63xx_spi_resume) -- 2.25.1