]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: cs4349: Use PM ops 'cs4349_runtime_pm'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 15 Aug 2019 09:01:57 +0000 (17:01 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
BugLink: https://bugs.launchpad.net/bugs/1863019
[ 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 <hulkci@huawei.com>
Fixes: e40da86 ("ASoC: cs4349: Add support for Cirrus Logic CS4349")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190815090157.70036-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/codecs/cs4349.c

index 0a749c79ef579bdd6bcf9688d6a24f784cfdc6db..1d38e53dc95c88d1c225249aec50ad989457655d 100644 (file)
@@ -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,