Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: do not include pm_runtime.h if not used

Do not include pm_runtime.h header in files where APIs exported by
pm_runtime.h are not used.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> # for omap-mcbsp-st.c
Link: https://lore.kernel.org/r/20230517094903.2895238-2-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Claudiu Beznea and committed by
Mark Brown
2f3092e7 63def6c1

-33
-1
sound/hda/hdac_regmap.c
··· 17 17 #include <linux/regmap.h> 18 18 #include <linux/export.h> 19 19 #include <linux/pm.h> 20 - #include <linux/pm_runtime.h> 21 20 #include <sound/core.h> 22 21 #include <sound/hdaudio.h> 23 22 #include <sound/hda_regmap.h>
-1
sound/pci/hda/hda_bind.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/export.h> 12 12 #include <linux/pm.h> 13 - #include <linux/pm_runtime.h> 14 13 #include <sound/core.h> 15 14 #include <sound/hda_codec.h> 16 15 #include "hda_local.h"
-1
sound/soc/amd/acp/acp-pci.c
··· 15 15 #include <linux/interrupt.h> 16 16 #include <linux/pci.h> 17 17 #include <linux/platform_device.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <linux/module.h> 20 19 21 20 #include "amd.h"
-1
sound/soc/amd/acp/acp-platform.c
··· 18 18 #include <sound/pcm_params.h> 19 19 #include <sound/soc.h> 20 20 #include <sound/soc-dai.h> 21 - #include <linux/pm_runtime.h> 22 21 #include <linux/dma-mapping.h> 23 22 24 23 #include "amd.h"
-1
sound/soc/codecs/max98090.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/of.h> 12 12 #include <linux/pm.h> 13 - #include <linux/pm_runtime.h> 14 13 #include <linux/regmap.h> 15 14 #include <linux/slab.h> 16 15 #include <linux/acpi.h>
-1
sound/soc/codecs/pcm186x.c
··· 12 12 #include <linux/init.h> 13 13 #include <linux/delay.h> 14 14 #include <linux/pm.h> 15 - #include <linux/pm_runtime.h> 16 15 #include <linux/regulator/consumer.h> 17 16 #include <linux/regmap.h> 18 17 #include <linux/slab.h>
-1
sound/soc/codecs/rk3328_codec.c
··· 11 11 #include <linux/module.h> 12 12 #include <linux/of.h> 13 13 #include <linux/platform_device.h> 14 - #include <linux/pm_runtime.h> 15 14 #include <linux/regmap.h> 16 15 #include <linux/mfd/syscon.h> 17 16 #include <sound/dmaengine_pcm.h>
-1
sound/soc/codecs/rt5682-i2c.c
··· 11 11 #include <linux/init.h> 12 12 #include <linux/delay.h> 13 13 #include <linux/pm.h> 14 - #include <linux/pm_runtime.h> 15 14 #include <linux/i2c.h> 16 15 #include <linux/platform_device.h> 17 16 #include <linux/spi/spi.h>
-1
sound/soc/codecs/rt5682s.c
··· 11 11 #include <linux/init.h> 12 12 #include <linux/delay.h> 13 13 #include <linux/pm.h> 14 - #include <linux/pm_runtime.h> 15 14 #include <linux/i2c.h> 16 15 #include <linux/platform_device.h> 17 16 #include <linux/spi/spi.h>
-1
sound/soc/codecs/tas2562.c
··· 8 8 #include <linux/errno.h> 9 9 #include <linux/device.h> 10 10 #include <linux/i2c.h> 11 - #include <linux/pm_runtime.h> 12 11 #include <linux/regmap.h> 13 12 #include <linux/slab.h> 14 13 #include <linux/gpio/consumer.h>
-1
sound/soc/codecs/tas5720.c
··· 11 11 #include <linux/errno.h> 12 12 #include <linux/device.h> 13 13 #include <linux/i2c.h> 14 - #include <linux/pm_runtime.h> 15 14 #include <linux/regmap.h> 16 15 #include <linux/slab.h> 17 16 #include <linux/regulator/consumer.h>
-1
sound/soc/codecs/tas6424.c
··· 11 11 #include <linux/errno.h> 12 12 #include <linux/device.h> 13 13 #include <linux/i2c.h> 14 - #include <linux/pm_runtime.h> 15 14 #include <linux/regmap.h> 16 15 #include <linux/slab.h> 17 16 #include <linux/regulator/consumer.h>
-1
sound/soc/codecs/wm_adsp.c
··· 15 15 #include <linux/firmware.h> 16 16 #include <linux/list.h> 17 17 #include <linux/pm.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <linux/regmap.h> 20 19 #include <linux/regulator/consumer.h> 21 20 #include <linux/slab.h>
-1
sound/soc/fsl/imx-audmix.c
··· 15 15 #include <linux/clk.h> 16 16 #include <sound/soc.h> 17 17 #include <sound/soc-dapm.h> 18 - #include <linux/pm_runtime.h> 19 18 #include "fsl_sai.h" 20 19 #include "fsl_audmix.h" 21 20
-1
sound/soc/intel/atom/sst/sst_acpi.c
··· 15 15 #include <linux/io.h> 16 16 #include <linux/platform_device.h> 17 17 #include <linux/firmware.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <linux/pm_qos.h> 20 19 #include <linux/dmi.h> 21 20 #include <linux/acpi.h>
-1
sound/soc/intel/atom/sst/sst_ipc.c
··· 15 15 #include <linux/firmware.h> 16 16 #include <linux/sched.h> 17 17 #include <linux/delay.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <sound/core.h> 20 19 #include <sound/pcm.h> 21 20 #include <sound/soc.h>
-1
sound/soc/intel/atom/sst/sst_loader.c
··· 20 20 #include <linux/sched.h> 21 21 #include <linux/firmware.h> 22 22 #include <linux/dmaengine.h> 23 - #include <linux/pm_runtime.h> 24 23 #include <linux/pm_qos.h> 25 24 #include <sound/core.h> 26 25 #include <sound/pcm.h>
-1
sound/soc/intel/atom/sst/sst_pci.c
··· 15 15 #include <linux/pci.h> 16 16 #include <linux/fs.h> 17 17 #include <linux/firmware.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <sound/core.h> 20 19 #include <sound/soc.h> 21 20 #include <asm/platform_sst_audio.h>
-1
sound/soc/intel/atom/sst/sst_stream.c
··· 15 15 #include <linux/firmware.h> 16 16 #include <linux/sched.h> 17 17 #include <linux/delay.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <sound/core.h> 20 19 #include <sound/pcm.h> 21 20 #include <sound/soc.h>
-1
sound/soc/mediatek/mt8186/mt8186-afe-control.c
··· 6 6 // Author: Jiaxin Yu <jiaxin.yu@mediatek.com> 7 7 8 8 #include "mt8186-afe-common.h" 9 - #include <linux/pm_runtime.h> 10 9 11 10 enum { 12 11 MTK_AFE_RATE_8K = 0,
-1
sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c
··· 10 10 #include <linux/input.h> 11 11 #include <linux/module.h> 12 12 #include <linux/of_device.h> 13 - #include <linux/pm_runtime.h> 14 13 #include <sound/jack.h> 15 14 #include <sound/pcm_params.h> 16 15 #include <sound/soc.h>
-1
sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c
··· 12 12 #include <linux/input.h> 13 13 #include <linux/module.h> 14 14 #include <linux/of_device.h> 15 - #include <linux/pm_runtime.h> 16 15 #include <sound/jack.h> 17 16 #include <sound/pcm_params.h> 18 17 #include <sound/rt5682.h>
-2
sound/soc/mediatek/mt8192/mt8192-afe-control.c
··· 6 6 // Author: Shane Chien <shane.chien@mediatek.com> 7 7 // 8 8 9 - #include <linux/pm_runtime.h> 10 - 11 9 #include "mt8192-afe-common.h" 12 10 13 11 enum {
-1
sound/soc/soc-compress.c
··· 20 20 #include <sound/initval.h> 21 21 #include <sound/soc-dpcm.h> 22 22 #include <sound/soc-link.h> 23 - #include <linux/pm_runtime.h> 24 23 25 24 static int snd_soc_compr_components_open(struct snd_compr_stream *cstream) 26 25 {
-1
sound/soc/soc-pcm.c
··· 14 14 #include <linux/init.h> 15 15 #include <linux/delay.h> 16 16 #include <linux/pinctrl/consumer.h> 17 - #include <linux/pm_runtime.h> 18 17 #include <linux/slab.h> 19 18 #include <linux/workqueue.h> 20 19 #include <linux/export.h>
-1
sound/soc/sof/intel/hda-loader-skl.c
··· 15 15 #include <linux/mm.h> 16 16 #include <linux/module.h> 17 17 #include <linux/pci.h> 18 - #include <linux/pm_runtime.h> 19 18 #include <linux/slab.h> 20 19 #include <sound/hdaudio_ext.h> 21 20 #include <sound/sof.h>
-1
sound/soc/sof/intel/hda-stream.c
··· 15 15 * Hardware interface for generic Intel audio DSP HDA IP 16 16 */ 17 17 18 - #include <linux/pm_runtime.h> 19 18 #include <sound/hdaudio_ext.h> 20 19 #include <sound/hda_register.h> 21 20 #include <sound/sof.h>
-1
sound/soc/sof/intel/skl.c
··· 19 19 #include <linux/module.h> 20 20 #include <linux/slab.h> 21 21 #include <linux/pci.h> 22 - #include <linux/pm_runtime.h> 23 22 #include <sound/hdaudio_ext.h> 24 23 #include <sound/pcm_params.h> 25 24 #include <sound/sof.h>
-1
sound/soc/sof/mediatek/mt8186/mt8186-clk.c
··· 8 8 // Hardware interface for mt8186 DSP clock 9 9 10 10 #include <linux/clk.h> 11 - #include <linux/pm_runtime.h> 12 11 #include <linux/io.h> 13 12 14 13 #include "../../sof-audio.h"
-1
sound/soc/sof/mediatek/mt8195/mt8195-clk.c
··· 7 7 // Hardware interface for mt8195 DSP clock 8 8 9 9 #include <linux/clk.h> 10 - #include <linux/pm_runtime.h> 11 10 #include <linux/io.h> 12 11 #include "mt8195.h" 13 12 #include "mt8195-clk.h"
-1
sound/soc/tegra/tegra20_ac97.c
··· 19 19 #include <linux/of.h> 20 20 #include <linux/of_gpio.h> 21 21 #include <linux/platform_device.h> 22 - #include <linux/pm_runtime.h> 23 22 #include <linux/regmap.h> 24 23 #include <linux/reset.h> 25 24 #include <linux/slab.h>
-1
sound/soc/ti/omap-mcbsp-st.c
··· 19 19 #include <linux/delay.h> 20 20 #include <linux/io.h> 21 21 #include <linux/slab.h> 22 - #include <linux/pm_runtime.h> 23 22 24 23 #include "omap-mcbsp.h" 25 24 #include "omap-mcbsp-priv.h"