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

ASoC: SOF: intel: Do no initialize resindex_dma_base

.resindex_dma_base is not used by the code and in all instances it is set
to -1.
To make it possible to remove it from the sof_dev_desc struct, first remove
all references from the intel drivers (initialization).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210915065541.1178-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Peter Ujfalusi and committed by
Mark Brown
7e7d5ffa 1e5dd2b9

-13
-2
sound/soc/sof/intel/pci-apl.c
··· 26 26 .resindex_pcicfg_base = -1, 27 27 .resindex_imr_base = -1, 28 28 .irqindex_host_ipc = -1, 29 - .resindex_dma_base = -1, 30 29 .chip_info = &apl_chip_info, 31 30 .default_fw_path = "intel/sof", 32 31 .default_tplg_path = "intel/sof-tplg", ··· 41 42 .resindex_pcicfg_base = -1, 42 43 .resindex_imr_base = -1, 43 44 .irqindex_host_ipc = -1, 44 - .resindex_dma_base = -1, 45 45 .chip_info = &apl_chip_info, 46 46 .default_fw_path = "intel/sof", 47 47 .default_tplg_path = "intel/sof-tplg",
-3
sound/soc/sof/intel/pci-cnl.c
··· 27 27 .resindex_pcicfg_base = -1, 28 28 .resindex_imr_base = -1, 29 29 .irqindex_host_ipc = -1, 30 - .resindex_dma_base = -1, 31 30 .chip_info = &cnl_chip_info, 32 31 .default_fw_path = "intel/sof", 33 32 .default_tplg_path = "intel/sof-tplg", ··· 43 44 .resindex_pcicfg_base = -1, 44 45 .resindex_imr_base = -1, 45 46 .irqindex_host_ipc = -1, 46 - .resindex_dma_base = -1, 47 47 .chip_info = &cnl_chip_info, 48 48 .default_fw_path = "intel/sof", 49 49 .default_tplg_path = "intel/sof-tplg", ··· 59 61 .resindex_pcicfg_base = -1, 60 62 .resindex_imr_base = -1, 61 63 .irqindex_host_ipc = -1, 62 - .resindex_dma_base = -1, 63 64 .chip_info = &cnl_chip_info, 64 65 .default_fw_path = "intel/sof", 65 66 .default_tplg_path = "intel/sof-tplg",
-2
sound/soc/sof/intel/pci-icl.c
··· 27 27 .resindex_pcicfg_base = -1, 28 28 .resindex_imr_base = -1, 29 29 .irqindex_host_ipc = -1, 30 - .resindex_dma_base = -1, 31 30 .chip_info = &icl_chip_info, 32 31 .default_fw_path = "intel/sof", 33 32 .default_tplg_path = "intel/sof-tplg", ··· 42 43 .resindex_pcicfg_base = -1, 43 44 .resindex_imr_base = -1, 44 45 .irqindex_host_ipc = -1, 45 - .resindex_dma_base = -1, 46 46 .chip_info = &jsl_chip_info, 47 47 .default_fw_path = "intel/sof", 48 48 .default_tplg_path = "intel/sof-tplg",
-5
sound/soc/sof/intel/pci-tgl.c
··· 27 27 .resindex_pcicfg_base = -1, 28 28 .resindex_imr_base = -1, 29 29 .irqindex_host_ipc = -1, 30 - .resindex_dma_base = -1, 31 30 .chip_info = &tgl_chip_info, 32 31 .default_fw_path = "intel/sof", 33 32 .default_tplg_path = "intel/sof-tplg", ··· 43 44 .resindex_pcicfg_base = -1, 44 45 .resindex_imr_base = -1, 45 46 .irqindex_host_ipc = -1, 46 - .resindex_dma_base = -1, 47 47 .chip_info = &tglh_chip_info, 48 48 .default_fw_path = "intel/sof", 49 49 .default_tplg_path = "intel/sof-tplg", ··· 58 60 .resindex_pcicfg_base = -1, 59 61 .resindex_imr_base = -1, 60 62 .irqindex_host_ipc = -1, 61 - .resindex_dma_base = -1, 62 63 .chip_info = &ehl_chip_info, 63 64 .default_fw_path = "intel/sof", 64 65 .default_tplg_path = "intel/sof-tplg", ··· 74 77 .resindex_pcicfg_base = -1, 75 78 .resindex_imr_base = -1, 76 79 .irqindex_host_ipc = -1, 77 - .resindex_dma_base = -1, 78 80 .chip_info = &adls_chip_info, 79 81 .default_fw_path = "intel/sof", 80 82 .default_tplg_path = "intel/sof-tplg", ··· 90 94 .resindex_pcicfg_base = -1, 91 95 .resindex_imr_base = -1, 92 96 .irqindex_host_ipc = -1, 93 - .resindex_dma_base = -1, 94 97 .chip_info = &tgl_chip_info, 95 98 .default_fw_path = "intel/sof", 96 99 .default_tplg_path = "intel/sof-tplg",
-1
sound/soc/sof/intel/pci-tng.c
··· 201 201 .resindex_pcicfg_base = -1, 202 202 .resindex_imr_base = 0, 203 203 .irqindex_host_ipc = -1, 204 - .resindex_dma_base = -1, 205 204 .chip_info = &tng_chip_info, 206 205 .default_fw_path = "intel/sof", 207 206 .default_tplg_path = "intel/sof-tplg",