Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp561202pxx; Thu, 29 Oct 2020 09:00:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEKjQ0MTBug0JmTowksoqniLVjZlsuVFD8N0dPzIFzkpbb2HtTuKriBiWlhdfYAAg6L51g X-Received: by 2002:a05:6402:8cc:: with SMTP id d12mr4786193edz.134.1603987214061; Thu, 29 Oct 2020 09:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603987214; cv=none; d=google.com; s=arc-20160816; b=PDatrHucmjXkIMK4ucqkoF64bPiKgYpOBHjublgtttOyej8qHS9Z0SPOBa7IPqljGv 7TpMj3AV5SIg/iS0oGbQLoYa9ELk+vnt4XcvAS6dfat0o8oQMCqy1I4X7TrUNSFcQQBv //vY/Rs96+sGe/ZzRX6JDIz3FgFK2FV8ihe3fUYCBW/BP3/MvciHexyCHfN42CUdODS3 ZmTWCLChPZonekzbZerhCFbBg5RkBeImuY2LXAkAIaJ9q+s++LWIf8+vDvVDFWv+u+UH 2YhmRArcQ3glApSVLPMgVU7es1pJNz+jGnKU9NNlfSUzhW3OMsXlO2wxHek5GdkvFZij qHAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MZg49iuuuHeBKD5UTNZqq0HBwG/btR4Qu3Pi0xslXDk=; b=rc2Fhp44RVNgulYI7mJQ12t3YfRz4AZejqNF/3iL0ugjg2LNRNt+/4oU2xRhLqhz7A d7u4Lac+zy0ki0rEtoII5MN/ZxefcM1Jo5Z45TVkE7i32OcpD45dUB1J13ix2nHssglb /TBlRMALEoCYruQo4POQMzyVzAgffMwIHECeOiTnufcZZIujbZqSfEX4DZJpWZ/+wrD8 owdphq8bA0/45vyYiDlufJ3H4RhtF6yend/kA83GHFZ65QbtPZLGdyZcM3hZP9ixteb6 bRrPu1kA1HigqGCwCfNhDI2fVNmtw1Ytsoe6Sn6mCIx+XwwYs5O9N1/3ToXQ5nRRhxHw C98w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ezu8S5a0; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si2312088ejd.641.2020.10.29.08.59.50; Thu, 29 Oct 2020 09:00:14 -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=@cirrus.com header.s=PODMain02222019 header.b=ezu8S5a0; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728473AbgJ2Pz4 (ORCPT + 99 others); Thu, 29 Oct 2020 11:55:56 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:42932 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727966AbgJ2Pzz (ORCPT ); Thu, 29 Oct 2020 11:55:55 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 09TFkceL016093; Thu, 29 Oct 2020 10:55:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=MZg49iuuuHeBKD5UTNZqq0HBwG/btR4Qu3Pi0xslXDk=; b=ezu8S5a02NS0Bmhv/lvOjQfnL6567/5Lh4vCGliWdf2Kwyse9tJB2cAVhRH4TjaegckA YuO0ZPPpvUfhY3Wq7ubENgJ0W42XAfFdJmVnVqVBNP+i1hpgYXcw6QEMp2ivsv0ozuAO Hb+nehNJviKlk0s2UfAL2NRm2Du3uFc6P49e+rwOf98Kf8xpM/jFs0WvcFES2ZK5d8oN MayeRFj7kfxyuj6Xlr9enjHf4o8/H8TuzFh//1NXNlLjTvy7J8QWPcoi2Tai+rJyQ8FY 6PmhajES4kaTXFAIBVEfnAdK7jd+dJ44CzBvp9J6voMtV/tEEOL4AaMiSkCQyqTTLBlr GQ== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 34chp1r5we-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 29 Oct 2020 10:55:06 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 29 Oct 2020 15:55:03 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Thu, 29 Oct 2020 15:55:03 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id BBB432C1; Thu, 29 Oct 2020 15:55:03 +0000 (UTC) Date: Thu, 29 Oct 2020 15:55:03 +0000 From: Charles Keepax To: Coiby Xu CC: Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , "open list:WOLFSON MICROELECTRONICS DRIVERS" , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: Re: [PATCH 24/25] ASoC: wm8994: remove unnecessary CONFIG_PM_SLEEP Message-ID: <20201029155503.GD10899@ediswmail.ad.cirrus.com> References: <20201029074301.226644-1-coiby.xu@gmail.com> <20201029074301.226644-24-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201029074301.226644-24-coiby.xu@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 spamscore=0 clxscore=1011 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010290112 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 03:43:00PM +0800, Coiby Xu wrote: > SET_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. > > Signed-off-by: Coiby Xu > --- > sound/soc/codecs/wm8994.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c > index fc9ea198ac79..9294ad06f76d 100644 > --- a/sound/soc/codecs/wm8994.c > +++ b/sound/soc/codecs/wm8994.c > @@ -4656,7 +4656,6 @@ static int wm8994_remove(struct platform_device *pdev) > return 0; > } > > -#ifdef CONFIG_PM_SLEEP > static int wm8994_suspend(struct device *dev) > { > struct wm8994_priv *wm8994 = dev_get_drvdata(dev); > @@ -4681,7 +4680,6 @@ static int wm8994_resume(struct device *dev) > > return 0; > } > -#endif > > static const struct dev_pm_ops wm8994_pm_ops = { > SET_SYSTEM_SLEEP_PM_OPS(wm8994_suspend, wm8994_resume) Not sure this really makes sense, what is going to stop the unused function warning if PM isn't configured? Thanks, Charles