mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 18:42:55 +00:00
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From c9766db550a078f52eee43fa6ba76eae2dda948d Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
|
Date: Tue, 8 Mar 2022 13:26:06 -0600
|
|
Subject: [PATCH 409/424] ASoC: Intel: sof_es8336: move comment to the right
|
|
place
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Additional code was added and the comment on the speaker GPIO needs to
|
|
be moved before we actually try to get the GPIO.
|
|
|
|
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
|
|
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
|
|
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
|
|
Link: https://lore.kernel.org/r/20220308192610.392950-17-pierre-louis.bossart@linux.intel.com
|
|
Signed-off-by: Mark Brown <broonie@kernel.org>
|
|
---
|
|
sound/soc/intel/boards/sof_es8336.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c
|
|
index e2daa5790..d7dff61c9 100644
|
|
--- a/sound/soc/intel/boards/sof_es8336.c
|
|
+++ b/sound/soc/intel/boards/sof_es8336.c
|
|
@@ -537,12 +537,12 @@ static int sof_es8336_probe(struct platform_device *pdev)
|
|
if (ret)
|
|
return ret;
|
|
|
|
- /* get speaker enable GPIO */
|
|
codec_dev = acpi_get_first_physical_node(adev);
|
|
if (!codec_dev)
|
|
return -EPROBE_DEFER;
|
|
priv->codec_dev = get_device(codec_dev);
|
|
|
|
+ /* get speaker enable GPIO */
|
|
ret = devm_acpi_dev_add_driver_gpios(codec_dev, gpio_mapping);
|
|
if (ret)
|
|
dev_warn(codec_dev, "unable to add GPIO mapping table\n");
|
|
--
|
|
2.35.2
|
|
|