From patchwork Fri Jan 24 09:31:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232922 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 C3C5AC35242 for ; Fri, 24 Jan 2020 11:28:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 948D520718 for ; Fri, 24 Jan 2020 11:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865291; bh=Ovnh/M0kR2ZJNb33G0dNMIN7VgpoG5pmnEJ1VTQLBa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=h2V/0Zw1nxq/go2j1havwUtv8qsFA+elXDRr3mrdFLOg5byNlEpc0CTGK0m1tmLtn BEUcWZNH2/secUVFaf79fNJZ2g+O9j3Z7JdngmHD0fwwNDvtZc+3963XdufQ8xaIcp K968AV3onKhknP042JyOln612pGfmgxPyC6Q26ys= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404020AbgAXL2I (ORCPT ); Fri, 24 Jan 2020 06:28:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:44150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404017AbgAXL2I (ORCPT ); Fri, 24 Jan 2020 06:28:08 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (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 CDBDB20704; Fri, 24 Jan 2020 11:28:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865287; bh=Ovnh/M0kR2ZJNb33G0dNMIN7VgpoG5pmnEJ1VTQLBa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MYhKn6XN9nJvDFMmJsnkA8nHBATRHZlz/i/Nyy/VE8ehByqOVQhR9x7LFyZOLBw+D s5p/p/OQbLm5M97wQtg1VGhUjzpLq5WmUXOczpzYhJ6L4eSqKdxLJsJAQxooxzPuVa gfRpz8BdaChF+UvOEc3OSbnPfSx3JrX5zAQGuTc4= 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.19 505/639] ASoC: cs4349: Use PM ops cs4349_runtime_pm Date: Fri, 24 Jan 2020 10:31:15 +0100 Message-Id: <20200124093152.056754919@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@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 bee0e343723fe..f08d7a296c0cc 100644 --- a/sound/soc/codecs/cs4349.c +++ b/sound/soc/codecs/cs4349.c @@ -381,6 +381,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,