ASoC: SOF: intel: Do no initialize resindex_dma_base
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 15 Sep 2021 06:55:40 +0000 (09:55 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 15 Sep 2021 12:10:12 +0000 (13:10 +0100)
.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>
sound/soc/sof/intel/pci-apl.c
sound/soc/sof/intel/pci-cnl.c
sound/soc/sof/intel/pci-icl.c
sound/soc/sof/intel/pci-tgl.c
sound/soc/sof/intel/pci-tng.c

index f89e746c25709ca9a6650d605b9460e3e29cb2d4..a023b3cc0af4b3cf36f438cc3b2cd6e3139ce4e1 100644 (file)
@@ -26,7 +26,6 @@ static const struct sof_dev_desc bxt_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &apl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -42,7 +41,6 @@ static const struct sof_dev_desc glk_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &apl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
index f23257adf2abdf5aab3efc26e1ef03cf6b0e4ec8..40cf1cd00042fa5cd4b081b2638153a0cbb28e6d 100644 (file)
@@ -27,7 +27,6 @@ static const struct sof_dev_desc cnl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &cnl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -44,7 +43,6 @@ static const struct sof_dev_desc cfl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &cnl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -61,7 +59,6 @@ static const struct sof_dev_desc cml_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &cnl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
index 2f60c28ae81f8765b3624d3046ddb744afc0927b..39c84121b31310b7bc38330c8c12b031c5e0d1c0 100644 (file)
@@ -27,7 +27,6 @@ static const struct sof_dev_desc icl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &icl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -43,7 +42,6 @@ static const struct sof_dev_desc jsl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &jsl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
index d04ce84fe7cc2a4ead4540c651595b8fe75ad1b5..f2ea34df9741da6177ccdcfb3b2254a92a32eb7b 100644 (file)
@@ -27,7 +27,6 @@ static const struct sof_dev_desc tgl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &tgl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -44,7 +43,6 @@ static const struct sof_dev_desc tglh_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &tglh_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -60,7 +58,6 @@ static const struct sof_dev_desc ehl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &ehl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -77,7 +74,6 @@ static const struct sof_dev_desc adls_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &adls_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
@@ -94,7 +90,6 @@ static const struct sof_dev_desc adl_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = -1,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &tgl_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",
index 4bded668b672e5cfc6a5e56746635b8d3e638a02..2f14082bd0ad296a124e69b7c9c30c34043269e7 100644 (file)
@@ -201,7 +201,6 @@ static const struct sof_dev_desc tng_desc = {
        .resindex_pcicfg_base   = -1,
        .resindex_imr_base      = 0,
        .irqindex_host_ipc      = -1,
-       .resindex_dma_base      = -1,
        .chip_info = &tng_chip_info,
        .default_fw_path = "intel/sof",
        .default_tplg_path = "intel/sof-tplg",