From patchwork Tue Jan 28 14:05:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 232652 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD47DC33CB2 for ; Tue, 28 Jan 2020 14:22:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B53222469E for ; Tue, 28 Jan 2020 14:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221336; bh=2rjCoQ6/I7YPt/RGPbGMpMOxxajYnKF5yuaiOGbmEpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=w33YDbP9axM5uzM0K3m0UFNjm3sWlc+A+TFbLj3W6cv7oTkRMa02RaHsTK97sKj0Y J4VoqSiAM0PhpcSIGMyRn8ehjoKZQpPRSTG4cJYl2Z97PEgZg4IaD/Z305EYkHKuTX TW2hrdUsiQXGpWA9qmu7X5UxgKIjKH5co49ZXhbk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726063AbgA1OWP (ORCPT ); Tue, 28 Jan 2020 09:22:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:47958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731190AbgA1OWN (ORCPT ); Tue, 28 Jan 2020 09:22:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BB62524693; Tue, 28 Jan 2020 14:22:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221333; bh=2rjCoQ6/I7YPt/RGPbGMpMOxxajYnKF5yuaiOGbmEpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K643VxjYniNpfRFrBrlK87F8Oe3/tc2BXE4krZOuQfiUbHvGWRSijSeMXemLmu926 OuPYrpy3GgnZFgIhznfZ6BMlfjThGDyuKHaDdVGC79ws9Ii2DvwE6UAskIxqJozKR3 CJBtrchK/G558EHFiByegvPZ2lo+Kipiz8zQlqoc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , YueHaibing , Mark Brown , Sasha Levin Subject: [PATCH 4.9 181/271] ASoC: cs4349: Use PM ops cs4349_runtime_pm Date: Tue, 28 Jan 2020 15:05:30 +0100 Message-Id: <20200128135906.011118753@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: YueHaibing [ Upstream commit 9b4275c415acca6264a3d7f1182589959c93d530 ] sound/soc/codecs/cs4349.c:358:32: warning: cs4349_runtime_pm defined but not used [-Wunused-const-variable=] cs4349_runtime_pm ops already defined, it seems we should enable it. Reported-by: Hulk Robot Fixes: e40da86 ("ASoC: cs4349: Add support for Cirrus Logic CS4349") Signed-off-by: YueHaibing Link: https://lore.kernel.org/r/20190815090157.70036-1-yuehaibing@huawei.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs4349.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c index 231ca935cdf3b..c232c42ccead0 100644 --- a/sound/soc/codecs/cs4349.c +++ b/sound/soc/codecs/cs4349.c @@ -380,6 +380,7 @@ static struct i2c_driver cs4349_i2c_driver = { .driver = { .name = "cs4349", .of_match_table = cs4349_of_match, + .pm = &cs4349_runtime_pm, }, .id_table = cs4349_i2c_id, .probe = cs4349_i2c_probe,