Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp270613pxx; Thu, 29 Oct 2020 02:06:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeaXmTwlty3pQBRwiou66FjV51DVq/iYwFL87kWI9ZiVZ1KxB8oESanDljFugjk5DodiaY X-Received: by 2002:aa7:dcc7:: with SMTP id w7mr2962386edu.80.1603962379605; Thu, 29 Oct 2020 02:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962379; cv=none; d=google.com; s=arc-20160816; b=kLYIuzQE5RX2fvMmI2jqavJU1RNl/Vo2yNJjDqEUhAF20Dr6Es9jR+00fVGNx9X5Qm 2KrfCdgaPHGyiX3HlGmDFBl85tO/0lrZulc6VdVBPDIHB4lW53DBtQsWemhRk/ETiE/T 1pn0sWGf+bw63FCgkB2jUPo9tfM6mNgkJfFg0Kf9E4e51/8h+1JQifuBYfKl//eCNxkY KuM/Vak1cDcV3+kkonSOy9tmkC0UcaehljNEOVzP43wWKm8N9xCSyH3ZeBTn+n7FRCTG ponTmNeE5O5FHoqNm8cuulAQb/iZWXdPQwlvG/9e/VcvtMT0+JqPUU2HThpcELQgNVFY obnQ== 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=NGq3AUw6ysMha/FfRYSK0ItKsIwpDFgIL0/PfPvnWrU=; b=uWU212Dc6SIIIFPLN53K8n6DlBhKvHGpX3h/aoMdZPOtfu1eaYiP+zHuRLaNZVVlhF bLuQ2B065BBshcinHf/EumhJmAZYeg7cDJteP5QebetOrZn1gYvVOb4qPydULM4TfLOr 5AVzgH4W+XMgAefw10f91nLWr43Ufxp147v3unESqnKfAsq39XRxIKjGZeLjbbSTQLj1 EbxxWAtRVLvuA/8ZMKZzgWBYsI0k+nIwsyafjybwvRtJZQCXlZjzlu2+Y396fBwVlXho SG8Z4vs7v4Zvx+Dlgh1iryUKt0WYKdkXBJQ19q18wQLziap78/E+xFA6RZJ+EuYJtzxP AntA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bnVSoLrb; 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 a6si1540237edq.273.2020.10.29.02.05.57; Thu, 29 Oct 2020 02:06:19 -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=bnVSoLrb; 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 S1727451AbgJ2ID2 (ORCPT + 99 others); Thu, 29 Oct 2020 04:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbgJ2IBA (ORCPT ); Thu, 29 Oct 2020 04:01:00 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD6C4C0613D2; Thu, 29 Oct 2020 00:51:12 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x13so1647346pfa.9; Thu, 29 Oct 2020 00:51:12 -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=NGq3AUw6ysMha/FfRYSK0ItKsIwpDFgIL0/PfPvnWrU=; b=bnVSoLrbLDKak3wbA067m2XQ+pNeAm2plBFMKyCKdA6CEgzhXD/wXBT5lXDx0F+8u+ xYegieS/ReMqYyfPoM2IYge7/7qvFLjd5p4NxLM1GxnEauDnW2+Qrwu+tn3YNmWONFRY TgS5K0YsDv7YYNr/facwK8WQaHhPXtmjgYdq+u34vTR9EUf3NDDQ5eKeO1zV9VpaNhEs 9KtXX4PvOatAAYC5gUr9/ubfqsegV5th2OOTUNWlDOawIAPSzAw4xbzfxBij0rwLPFUM 2xchontH33wuSdahu4mOyCKEF9c1qMiITDcq6/FB4VQz3YMJZkirx1xBZxhj28bGLJfS I/rg== 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=NGq3AUw6ysMha/FfRYSK0ItKsIwpDFgIL0/PfPvnWrU=; b=I6XfreYes1usXx0YnKXA+rxW/+rCfVj8BRkIUdVWPmhpe2tjyL6RI7eoCrfHgg1WMO UFNRquzhd3kHcIfmGAaKLiDJRAh1lnmqdL3B7f5Q2/BTtiR22646x41TF4OZXfONiQ1v TgRwlCOfLuCynU8aG6yZ73WAjSd0QvRlAF0AS9IF52vuEnDPY2mX0NTThDR0rMx5IPnI vnhU5ALZkvRN56q8oH/DrcHlrgHRURF7bGyWrzJVeMnesaKus4mA77ohu3nU20E+pS7g jPy1iytojKoN+nU0FLirzpB+bI9trZPQ1/aDrsxFuxij1b8IbGErvModjpwwOT7SlVCb 4/DA== X-Gm-Message-State: AOAM532fmPqraGAbOwQwFLyU8tQ0MXnLM11PjEhjhBBBnD25PdqFIkQN mJsR9Xzsw9qIbOLoX+AVYfQ= X-Received: by 2002:a17:90a:b303:: with SMTP id d3mr3056205pjr.207.1603957872363; Thu, 29 Oct 2020 00:51:12 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id y1sm1932947pjl.12.2020.10.29.00.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:12 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , Maxime Coquelin , Alexandre Torgue , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 10/15] iio: adc: stm32: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:05 +0800 Message-Id: <20201029074910.227859-10-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029074910.227859-1-coiby.xu@gmail.com> References: <20201029074910.227859-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 SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/iio/adc/stm32-adc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index b3f31f147347..42f9013730f8 100644 --- a/drivers/iio/adc/stm32-adc.c +++ b/drivers/iio/adc/stm32-adc.c @@ -1988,7 +1988,6 @@ static int stm32_adc_remove(struct platform_device *pdev) return 0; } -#if defined(CONFIG_PM_SLEEP) static int stm32_adc_suspend(struct device *dev) { struct iio_dev *indio_dev = dev_get_drvdata(dev); @@ -2018,7 +2017,6 @@ static int stm32_adc_resume(struct device *dev) return stm32_adc_buffer_postenable(indio_dev); } -#endif #if defined(CONFIG_PM) static int stm32_adc_runtime_suspend(struct device *dev) -- 2.28.0