diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2023-09-14 16:09:16 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-14 16:12:47 +0100 |
commit | 3d3a86679541044a65ea23175cb95206921c8fe2 (patch) | |
tree | 7cae87ab8382b1e2d7ee1bd9e977864d90e90a7d /sound/soc/codecs/cs35l56-spi.c | |
parent | 353bc9924cb1b7176fdc4ebb3610306398f41c94 (diff) | |
download | linux-3d3a86679541044a65ea23175cb95206921c8fe2.tar.gz linux-3d3a86679541044a65ea23175cb95206921c8fe2.tar.bz2 linux-3d3a86679541044a65ea23175cb95206921c8fe2.zip |
ASoC: cs35l56: Use pm_ptr()
Use pm_ptr() when setting the pointer to the dev_pm_ops so that it
will be NULL if CONFIG_PM is disabled. This allows the dev_pm_ops to be
compiled out in that case.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230914150918.14505-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l56-spi.c')
-rw-r--r-- | sound/soc/codecs/cs35l56-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs35l56-spi.c b/sound/soc/codecs/cs35l56-spi.c index 9962703915e1..768ffe8213dc 100644 --- a/sound/soc/codecs/cs35l56-spi.c +++ b/sound/soc/codecs/cs35l56-spi.c @@ -70,7 +70,7 @@ MODULE_DEVICE_TABLE(acpi, cs35l56_asoc_acpi_match); static struct spi_driver cs35l56_spi_driver = { .driver = { .name = "cs35l56", - .pm = &cs35l56_pm_ops_i2c_spi, + .pm = pm_ptr(&cs35l56_pm_ops_i2c_spi), .acpi_match_table = ACPI_PTR(cs35l56_asoc_acpi_match), }, .id_table = cs35l56_id_spi, |