Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp306969pxx; Thu, 29 Oct 2020 03:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUilDsJU4T1OPCYZzVJyuoTsEzHtlsX9oaEmlLyh0ITnfxS17eInsPs42G+pCai0Z+G3Fz X-Received: by 2002:a17:906:1446:: with SMTP id q6mr3341676ejc.549.1603966302308; Thu, 29 Oct 2020 03:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603966302; cv=none; d=google.com; s=arc-20160816; b=My8Aoiybohs5Spqlu6izGLb225oudf8VnCgImgA88Rc0q3MYSBOyVT7bEMZM3K5Iz5 LNDeUhtbyrZzIZnhEb3DtibVC9oOQbuEsf1yWIpNDTL01/aJtES2nZ9dRk14zTRyyBzS mvu0lnBIdfdgsEriQLc5rFYFGshUZLOEjWV1rDZGV2wWT7dohzIUcu7w9YRSTX8pyNdH OaVKdGB2XI5M0j4wV8l9oLUbQpzajZ53YEtURRVRFmcYhCMFnI0JtuNPApqRzPYD+PYr YmP/289jjmA2p2rSOfgQ2I2uIzuoM0xeUlSt59LFrUd4CVvkWoBlUfVME/e/jfllRP4A ZFHg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xzfokQalXxdAHUBK/rxtge5l+Ejl9k1RpHJ2eAwHePM=; b=YB5yovVo2Jv6FC364mo/85VYWfPDFvX9yIZ6TSrnJ/SlMZCqsIEoyZHK5aO1Ro8KBu HnjGOpJY3taASd584TfFmEyaX06+B20WNQ3rf24FMIBC9Xdm7h0+r+pkE1EApJ1BIW5l JWEY2BnUzBIw68UG6B9irqFswUR8Yu+rnrdUCIJAdti6p/z437wVztGuDiiJgpz+/iXn 58wRft6w3TbXpn8krI2GQTllf1W5GeCKrLnKhvje4y7dWMvuoNyQojQIIhhBQDxN5iQY RuNFn0eFj56fCJcWWChruq6XjWSmh6r3vkGEQRWVLpluiqqM4KaIcjFRr1JwNuUt21xD UF8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AS5MLfUf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si1562957edw.449.2020.10.29.03.11.18; Thu, 29 Oct 2020 03:11:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AS5MLfUf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726263AbgJ2KH2 (ORCPT + 99 others); Thu, 29 Oct 2020 06:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgJ2KH1 (ORCPT ); Thu, 29 Oct 2020 06:07:27 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 681FAC0613CF for ; Thu, 29 Oct 2020 03:07:27 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id x13so1924015pgp.7 for ; Thu, 29 Oct 2020 03:07:27 -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=xzfokQalXxdAHUBK/rxtge5l+Ejl9k1RpHJ2eAwHePM=; b=AS5MLfUfSO7SCqwhzooT5LlHM+JKT2X0NH7cEyiYqPayL++nGTzB2UdQJHcOYz2Nf2 6KIbeLcaXa01KIqkYN+S3Jv6qkI7QDaGY8ZaUq8IHPQukCmMRTahCLGpWQlgexPgSbYp 7Ebiucpewq0HlubO8VD4hO+64Jf7khP/6VFTPIqD0j/1ZzYAXUqfuVTW4M0tD5x3a6SR W0wMBJSfoWqMBQtDQ5wxCvEEXuhAxKSdkIwJHHJIKz0m++sdR8TCSbB+yfWkrA7w0F1a DQQZbv2e/DKntHX6h0AMdJy+ER07XYQd85NT+l+RvDXobvPoZKIjdTJ8yC1Uu4gADw5t mbew== 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=xzfokQalXxdAHUBK/rxtge5l+Ejl9k1RpHJ2eAwHePM=; b=PueWzuw/f2QAzAozE0kHTS3s3EbXrZFtixgwAKVwPT88Jphl7C8Xn8oRDwG1Rvy2jj J/Ax2Od8NAjQ0a3774ujvzrCF7+sLXU+WRUs6RbevhQZRuWTZHNoLOpdcHFaKWyYASUS mVX4s/qpmRkAUNs2z50ucakaeC3P8BDkJDjKK7UbAQ+QzXUCWt4jf+KX4v4b1OAg50F7 O8giPNQ1Gr1OQFbImG8DD8vYCtSgV1SOVamifylulKtUGWco9dA3gunRFS5HeQtWt5bj 3r+mv6eiBHndP7j9e7JIh/nfre1KPTP4q7cOx79ZN57AMzMAmgorR4uXMILGpBxQQsc2 /QWg== X-Gm-Message-State: AOAM532UWuLSHXOKWtn4dv+Wc8Ic4lC8cvG6/Ig4ygrFv7qAfHwIAuJC uL3tjPzh44E7aOi+4QIo2iI= X-Received: by 2002:a63:4909:: with SMTP id w9mr3323963pga.294.1603966047016; Thu, 29 Oct 2020 03:07:27 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id j138sm2375325pfd.19.2020.10.29.03.07.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 03:07:26 -0700 (PDT) From: Coiby Xu To: Lee Jones Cc: linux-kernel@vger.kernel.org (open list) Subject: [PATCH 5/9] mfd: stpmic1: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 18:06:43 +0800 Message-Id: <20201029100647.233361-5-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029100647.233361-1-coiby.xu@gmail.com> References: <20201029100647.233361-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/mfd/stpmic1.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index eb3da558c3fb..8be7a6dd9bbb 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -162,7 +162,6 @@ static int stpmic1_probe(struct i2c_client *i2c, return devm_of_platform_populate(dev); } -#ifdef CONFIG_PM_SLEEP static int stpmic1_suspend(struct device *dev) { struct i2c_client *i2c = to_i2c_client(dev); @@ -187,7 +186,6 @@ static int stpmic1_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(stpmic1_pm, stpmic1_suspend, stpmic1_resume); -- 2.28.0