From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A0D6C55178 for ; Thu, 29 Oct 2020 07:48:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC14D2076B for ; Thu, 29 Oct 2020 07:48:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="P/+JtJxB"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UkuEIBks" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC14D2076B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1qerQAXhY0Hrdf8bH0lSulZmrqsORcGXLxHFEnos5w0=; b=P/+JtJxBG8tNRMJjA4Z4tSGVb tQ/AyncpP33Go2lk3qQVmIpnFr6nbRXsnRjv9hqS2OLvnv674gQ6lHJONXAOFZtA6KWtTHa+qlESk /32MOo2+1WI+myKOs2Q85LYgRaRGEn2rTmRmUbkJk+rPdjOE9Io/jfPkXhsH+3P89GELA/dADTmbq y+uTr2twwdjBmNz+b+fsInExU9osd9CWD8vWnPVQZX+QEymxva3VDHEu+NrCpdZE2tz+oY33/Z1An 3vzcTZLhil4pGIpYpaRhfzrQX66tBT1RbOloRNsns710P9qv1MHBdeMKLPqbZ7Dx5+aTehFz6fLhz IkbnNAGYQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kY2fO-0000Nb-Ci; Thu, 29 Oct 2020 07:48:14 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kY2ew-0000CY-Ot for linux-arm-kernel@lists.infradead.org; Thu, 29 Oct 2020 07:47:48 +0000 Received: by mail-pf1-x443.google.com with SMTP id b3so1670641pfo.2 for ; Thu, 29 Oct 2020 00:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uv2FWQlSBJFmE706ogx6rH+lBxHwtXvvktU8G7mdeHE=; b=UkuEIBksTIBEx0rU9xx8YSrprU5SuhUkN7XbFd8Ss4WqdzUiRKgQToHyt959jtOKzE descPPhCAOW0XNzIJF1XRtujK2NMKSeIKOais3aepphrSUfUB3jAs7x01P+pOrYsaygI tksDMUUbjLTMKxTbn4Cb5pdlHLDgNO0QF4+tJM9jsZ6ThxQ7y5mXMg7ujImMn+wzmyRR 8i0IxBH/r//xZ1LE6r79PribG82uJ0XwUtm05Dd+IXedix0wIz0c9GdQkKf0oNQ3vD5Y elnrMVaYVrgf9Fb4wuKD93ftXMWvP7e9uCX8HlzzQ/4hXezZp/iJaHbuaZ1IQDyaoEUH xBEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uv2FWQlSBJFmE706ogx6rH+lBxHwtXvvktU8G7mdeHE=; b=ZEeLs/yHhM6LIfxg0pqsPHnhdzOxv9xpCiRq5zAGQWM9p7+AloFwcTupvcaQUZNFuW 27+L64y4HL8Nb73aTFMDhTaxFP75Wz6eOynu0KDyCUY6sfIWXtCQ2aHh4a9uFsTzhNSc ZzeQsO4t3wzt/c6CctsI3pBwO57Jacm/FB0r8urho/19lmoWW2smDYWXyPZkddyryvtO tiUl4MgSyhqnlUwqShMhlJ1oGE0usVGnhDYlq7I9zgQltbX50ih42GJAIHLKhBADktWW MiQ+osnCuA3Z+2753FaPXZXHaYYyFYP9BABK3sY0o1gL62lvkKyKWORA59GFfZbh5pW9 n2uQ== X-Gm-Message-State: AOAM533e6HjfvmAKhnf8i6TvXs/3YvjcwTqIGROZIgbIrPGj/bv7Yi6H Nxf61kL2Bi/E+x+TSrNsg1c= X-Google-Smtp-Source: ABdhPJxKwsyEZXm+NRlnPeeDS94chF16rqocvuwXKW/X+8833uLeRKJCpBpQq0NAIMLEiiDLcXXemA== X-Received: by 2002:a17:90b:17c3:: with SMTP id me3mr2716736pjb.56.1603957664762; Thu, 29 Oct 2020 00:47:44 -0700 (PDT) Received: from localhost ([160.16.113.140]) by smtp.gmail.com with ESMTPSA id z5sm1834680pfn.20.2020.10.29.00.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:47:44 -0700 (PDT) From: Coiby Xu To: linux-i2c@vger.kernel.org Subject: [PATCH 5/5] i2c: stm32: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:46:54 +0800 Message-Id: <20201029074654.227263-5-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074654.227263-1-coiby.xu@gmail.com> References: <20201029074654.227263-1-coiby.xu@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201029_034747_051714_ED50FB49 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , open list , Pierre-Yves MORDRET , Maxime Coquelin , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/i2c/busses/i2c-stm32f7.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c index f41f51a176a1..95ac9dfdf458 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -2262,7 +2262,6 @@ static int __maybe_unused stm32f7_i2c_runtime_resume(struct device *dev) return 0; } -#ifdef CONFIG_PM_SLEEP static int stm32f7_i2c_regs_backup(struct stm32f7_i2c_dev *i2c_dev) { int ret; @@ -2356,7 +2355,6 @@ static int stm32f7_i2c_resume(struct device *dev) return 0; } -#endif static const struct dev_pm_ops stm32f7_i2c_pm_ops = { SET_RUNTIME_PM_OPS(stm32f7_i2c_runtime_suspend, -- 2.28.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel