Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp232550pxb; Thu, 2 Sep 2021 02:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf2wU23toIHbCnnQrHosrRCjD0EV1MrVzTp8PwrIT3gMFHBBdQVNE30vcG9UB5L9q1KojV X-Received: by 2002:a05:6638:3284:: with SMTP id f4mr2093239jav.67.1630576748523; Thu, 02 Sep 2021 02:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630576748; cv=none; d=google.com; s=arc-20160816; b=npxtfH+rDqinv3v3YMKGaHkCh71t9DeC2YJPwliVx0ejcu6QtJ0SBbUBzY83pwZLvf tcNgxkAKXxtSeflx033TcfnL0NH//g1XcflBIHKLUtn1cfMKPglxXbYwI6+FYn0PlQIQ 3ieTdgNctECBBe6ZTbIe2IZogo6aZZ43wG5PdhVfiRTppnseYy9DjMf0qoATnN+5rMvQ sLwwAY9ofxkJtZ0MH0wAhvV4WN1JNH1slnuviICqWIEU+JbTqayKNJf8Wu3guMCeHek0 Udb1e/6e5d+9MZzZ1857hfivkjWZAfmgga5Du+3OxpURGbZ/W++uOzQrn/gUxO/qid+c ZMaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=PgdOh60ydCTyPo0MsfeG+BQm+UWarF/ycXknPdnkVps=; b=Eds+DfQSFYlhRCIgu5Gwe/EV3ixb234kCvxLyodOA7Z6noVlbHgb2ivBzuHNOyIBCe 9aQuJEr7IKXIP6kUVwWkxWQk593TaS2o9mFZpL37zu90RZwmdklwqoY6coA4BG7jbC0N irvCOylm8isUYJEx7pEBKNaNjWu24Fclh9LrOeraEyXiR5aSOa5t6pga8blaqsLj/q6q KEGngKnmWUZ/CdD7GFpGyVowbkkSWpqB8yxspdFUppCnNAOmy6gjyAuUHuku0SRr7Cl/ jjBQtyoPd0UbQUcvCHMOkkS1cnFTt/i8ehz2kr6ZlXNPcEeVrHoYQ2BHOJQnxGqz4Zz3 QCvQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si1604834ili.37.2021.09.02.02.58.57; Thu, 02 Sep 2021 02:59:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243149AbhIBHPp (ORCPT + 99 others); Thu, 2 Sep 2021 03:15:45 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:35260 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231133AbhIBHPp (ORCPT ); Thu, 2 Sep 2021 03:15:45 -0400 X-UUID: 59fcbcd1a388466bab211785bc791fb5-20210902 X-UUID: 59fcbcd1a388466bab211785bc791fb5-20210902 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1633932517; Thu, 02 Sep 2021 15:14:42 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 15:14:41 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 2 Sep 2021 15:14:41 +0800 From: Trevor Wu To: , , CC: , , , , Subject: [PATCH] ASoC: mt8195: remove unnecessary CONFIG_PM Date: Thu, 2 Sep 2021 15:14:40 +0800 Message-ID: <20210902071440.6087-1-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The unnecessary conditional inclusion caused the following warning. >> sound/soc/mediatek/mt8195/mt8195-afe-pcm.c:3260:32: warning: unused >> variable 'mt8195_afe_pm_ops' [-Wunused-const-variable] static const struct dev_pm_ops mt8195_afe_pm_ops = { ^ 1 warning generated. Because runtime_pm already handles the case without CONFIG_PM, we can remove CONFIG_PM condition. Fixes: 6746cc858259 ("ASoC: mediatek: mt8195: add platform driver") Signed-off-by: Trevor Wu Reported-by: kernel test robot --- sound/soc/mediatek/mt8195/mt8195-afe-pcm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c b/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c index 6635c3f72ecc..f8dd50c8a7da 100644 --- a/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c +++ b/sound/soc/mediatek/mt8195/mt8195-afe-pcm.c @@ -3266,9 +3266,7 @@ static struct platform_driver mt8195_afe_pcm_driver = { .driver = { .name = "mt8195-audio", .of_match_table = mt8195_afe_pcm_dt_match, -#ifdef CONFIG_PM .pm = &mt8195_afe_pm_ops, -#endif }, .probe = mt8195_afe_pcm_dev_probe, .remove = mt8195_afe_pcm_dev_remove, -- 2.18.0