Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp271817pxx; Thu, 29 Oct 2020 02:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYC+/iohCmGumf+lPUSYMwV3peELJ3uzI/H7FAhbFLhxMSQ/6LiUYv5c4JN6xI+VYemCz0 X-Received: by 2002:a17:906:a289:: with SMTP id i9mr3133094ejz.193.1603962499283; Thu, 29 Oct 2020 02:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962499; cv=none; d=google.com; s=arc-20160816; b=uFEJY/uLcKpcoV9RDttuckOgTM/xMIOkqovg3zE98HuZPqjNfleBhBfRo/uj7hT4Y8 FkjsWJauAy4DA/LXDu9tMVvJjWRRsWxlwt2TgJ5AYl5wKwmOi1R4x9FVaxDs6r5JCkAg SyNNpo6bxE9a9zwJAkhasLKaZ2pIm8KaBjNW1dZAiVCr2PLriLuNGhzMpR2VxroLM25L l8XttSMRVbkAPKNRSEUc4BiZmmwKsvSqjycDdrMUbfHfo/KHoxdFiNvTWEjqrtidRHUE GdNbjRsNwfK24ok+Uw6eq9EWRLmWOzEnby36yvxHZpMu7laXIJ2DK8NMyH5U5Dnc1V7s nD7A== 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=37IRInXQBrHpwWyuXj6qxmh1TahkV1hoRBjQOKGXhq0=; b=OM3AIlPN9t6FquQojqW0G7tNd+xQDrUyAtZCHrIkZWuvTRnWQD2a4+yQkXdhZjMmen GXEHFNF4PNxyGX1PTa4eMHogtMPnjhu+L/sNX+o0Auk/z+8TFwGFwo6/KGG5t2AaCu3N JobEvrkJFBNe94TUcrrgZTkMjePwsgOaqhZI2x0MNQ4US80RORzVHuYCc/pEc6SaK64w dgdxfPxtd2uPlzVLQNY2z/3Am29shTkrCHndgp1duovxI4o69PJ17LawDU9MtThl2JQr F7ofh0TUu/ePdi8AM/Ehp/1yud1PA1PNHT7QgEAGHdgTCLrWEE0lEPMvPTd4Zynbnp2r 11wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YJPMOhTG; 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 i26si1430638edq.25.2020.10.29.02.07.57; Thu, 29 Oct 2020 02:08: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=YJPMOhTG; 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 S1726433AbgJ2ID0 (ORCPT + 99 others); Thu, 29 Oct 2020 04:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbgJ2IA6 (ORCPT ); Thu, 29 Oct 2020 04:00:58 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8188C0613D4; Thu, 29 Oct 2020 00:51:34 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id s22so1654460pga.9; Thu, 29 Oct 2020 00:51:34 -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=37IRInXQBrHpwWyuXj6qxmh1TahkV1hoRBjQOKGXhq0=; b=YJPMOhTGBwSxNTy9wYJdd3nuCruJq8bno88m+BFzoLTenKC0k4ufnz9BPMa2wMpAKd xFdeVK7cyuNWMbQCk+ylDQr3tLhReVkp8WFPBdyGXunb/azzuheiK2YxQzhxK98EWGDh bCYU8PMRzK03VuOSZJGmmvb/7bq5wm5X1UUEVKF/JowMkbIZkijf9xmeFEZGu2U6msZH C3lzKtWdNykUtHVz0v21eTVcmMRI1K9e9KliAG7Q9QX1fTeysofwJybgncTmHLH6HHI2 oMPAM8S3Q4g/jJepDT0ibZAOICyuIDFEHhgriIsOrot8g5R2epM2G9uNd+zb3NVQyl7y q1Ew== 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=37IRInXQBrHpwWyuXj6qxmh1TahkV1hoRBjQOKGXhq0=; b=GuLayqN8iRQUceqQiataaAjKbqWCzrvN9W/FHVroifMksZwIcUj5uH/XftydBWKJFq A0JqoqlXieaJ6Qm7FzICwHL/y6jcl7z+310YbX5vmFwQGax1WQti4NEGhfHHcs2W9+20 M1Qh8w35XcvxzD6K7qLLB5E/HQlPKpLiQi+obh/dR2hELxy3xHFJRmMYzrF8Bn+fPMUg hmkwCjrzrDV9l250e/FOdku5+Yd5Fxwa7FfySyFgESQc6f3wGcMxKFkNPXmmrofMe27c O+QP7qeeJE0pMxegqE+BLV0myAQOgnsj2IbOVqoo4hBNIgaAQI4GpDoYQpyCrVKNrupd eoxw== X-Gm-Message-State: AOAM532WEUzrb4dfs9AX1G/AF4zd71tUTZVHrX4WePNzeoAFeXkehkBP gpiLzsl2bxmq32FnZX0rgFk= X-Received: by 2002:a17:90a:1501:: with SMTP id l1mr3163731pja.19.1603957894549; Thu, 29 Oct 2020 00:51:34 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id x2sm1818933pfc.133.2020.10.29.00.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:51:34 -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 12/15] iio: imu: kmx61: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:49:07 +0800 Message-Id: <20201029074910.227859-12-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/imu/kmx61.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index 61885e99d3fc..3b3d44ea8d24 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -1448,7 +1448,6 @@ static int kmx61_remove(struct i2c_client *client) return 0; } -#ifdef CONFIG_PM_SLEEP static int kmx61_suspend(struct device *dev) { int ret; @@ -1474,7 +1473,6 @@ static int kmx61_resume(struct device *dev) return kmx61_set_mode(data, stby, KMX61_ACC | KMX61_MAG, true); } -#endif #ifdef CONFIG_PM static int kmx61_runtime_suspend(struct device *dev) -- 2.28.0