Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp269405pxx; Thu, 29 Oct 2020 02:04:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCJcT+FvlrH3KTCHwIMR4YFm37Ec6tx2lYabF/KdiivBSsNT+Y1dBE96vDqsCuTk0n0qhQ X-Received: by 2002:a17:906:b010:: with SMTP id v16mr3123279ejy.163.1603962271473; Thu, 29 Oct 2020 02:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962271; cv=none; d=google.com; s=arc-20160816; b=I79K4Q6EoZ9IWelw4wrM9UcWJyP5K1CaSOVnfL9hrNAMUKP6igrZp8g1uw9Q3OJ6az X6v1enPvbyZkn34DivYP+NGAQPuzGz6TBN6sYmqFcItOwexoHG0sBflBXfAZDL8ZBuoC yS+vEM3V939zkXi0bcFjQ7odGyVSMVEp+Vi8BE3hooLygBjAMK78eYkWK5ylpJuW0F2H u5kEisGhxFO+K4/fqhPsM3fO4N6X/6SM8Wwl4ec6IDprEixgue79+72iA4CluU7xDE97 +kPxvcgbIEeBocZsr9qr31l/pwriodOzRqv47uMnR+zeP2AlS6rip3wNDoXDU3445kKc xxCg== 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=NOzNlbNOltOtdR1QdriCPf2XH+HcyRFu5e424v+5S24=; b=Ai+yzWWBiZn7puL4DOIrbOFKK3d9jand3T7AMi4fBZjUwvcB2SSQ4JztgUaapLbaBe bLD3wsulL856HfbLKwDwpWMRa2Om6ruNZdJhRuKPoTNIcqUp0JXof9yfHEaJLqDcA04h Ml5QAZg8W3ly4CLNer91CPds6KYpplTrFnj0wyG8xXX0gwnt8R+GyoWbMHVCiGHlM0HI N+sR7CGcg8bqMdIRZSg/eIzzF9oMhwQLRiOlSduabS7AEyxVxSWFbWeqv9q+dDbtir3A jTwbPGAf3KW1Ay1QsiR56oW+UqzRbiOYkq7Md+O3CwElaczxVkr5MdGnelAoAwnTIqXc yIZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="K6/mzp9+"; 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 cx17si1407796edb.405.2020.10.29.02.04.09; Thu, 29 Oct 2020 02:04:31 -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="K6/mzp9+"; 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 S1730862AbgJ2Hut (ORCPT + 99 others); Thu, 29 Oct 2020 03:50:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730816AbgJ2Hur (ORCPT ); Thu, 29 Oct 2020 03:50:47 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11FCC0613CF; Thu, 29 Oct 2020 00:50:46 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id x13so1646566pfa.9; Thu, 29 Oct 2020 00:50: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=NOzNlbNOltOtdR1QdriCPf2XH+HcyRFu5e424v+5S24=; b=K6/mzp9+iSfR1F0KLrjqgFqtGBgGu5Qsyh9lrv3lpj51Z3FiXtcnICok7kdsijfIJ3 0oLxGapPR3OtbP/2I4cWFTW2mESkcLLGuP24RealKcYZJeZIQJYzniqNa69DaEsg5fh/ ll71+R5b2Ag8xdbm/UYVEY4Et5kfQ5lpqhb93x4kjPRXWMBJ20bdYEyPklacx3G5kGod I/jpxhGvKPKF4uIdkaTPVZa7QwAUbVSxGMkThEYK+WDi8MPeDO3zVmVcbHppfXO6Whn2 YQPIZKzDe60sCedqDCnbzWt7QBHkiHmQdC+TTTEPpKs120vc1/j2qC4Cgbilim1V2KZm QPJg== 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=NOzNlbNOltOtdR1QdriCPf2XH+HcyRFu5e424v+5S24=; b=poJp9o35/lcP8Z+VBTrGx8bESgMf6JMa2rMOtOrE6hYlzCIvxbIna1foiNqHrg4gb7 vTHrllffRi6ZMtHn6FuevkqfSeYuwAP/62wvYs7cPEU0VWfchDIgBP20IeNnq+5KiVw0 2yuigMWINrr57f+SqspPnuCF875wjT/coOzIT+aWNP2il1qHCodQpPe75fZNXJehpYQo BANMUTipHbZwTCmvmVcGWIynvmEyTgEv1TcV2HivOQ2lN0q7TYDfzO7wJHS/vPW0SW/h 7aizan6ZxOivq3RWx/cdazSIpqcERH5KlVV965DHQ2gQN/lGyqfVjGKJV8whGMdzA5A9 j1BA== X-Gm-Message-State: AOAM53196DCZs2nnKbCfWxxc41mx7fT1tn98hwU5jzk48u5A7CR+uQAk JM6RYBzFH7GhMpU7DiXObHI= X-Received: by 2002:a17:90a:4e83:: with SMTP id o3mr3025792pjh.164.1603957846646; Thu, 29 Oct 2020 00:50:46 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id s6sm1631225pgo.8.2020.10.29.00.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:50:46 -0700 (PDT) From: Coiby Xu To: Lars-Peter Clausen Cc: Jonathan Cameron , Peter Meerwald-Stadler , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 07/15] iio: ssp: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:02 +0800 Message-Id: <20201029074910.227859-7-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/common/ssp_sensors/ssp_dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/common/ssp_sensors/ssp_dev.c b/drivers/iio/common/ssp_sensors/ssp_dev.c index 1aee87100038..e284ff702280 100644 --- a/drivers/iio/common/ssp_sensors/ssp_dev.c +++ b/drivers/iio/common/ssp_sensors/ssp_dev.c @@ -612,7 +612,6 @@ static int ssp_remove(struct spi_device *spi) return 0; } -#ifdef CONFIG_PM_SLEEP static int ssp_suspend(struct device *dev) { int ret; @@ -661,7 +660,6 @@ static int ssp_resume(struct device *dev) return 0; } -#endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops ssp_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(ssp_suspend, ssp_resume) -- 2.28.0