]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soundwire: depend on ACPI
authorMichal Suchanek <msuchanek@suse.de>
Thu, 3 Oct 2019 10:13:54 +0000 (12:13 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 15 Oct 2019 10:45:58 +0000 (16:15 +0530)
The device cannot be probed on !ACPI and gives this warning:

drivers/soundwire/slave.c:16:12: warning: ‘sdw_slave_add’ defined but
not used [-Wunused-function]
 static int sdw_slave_add(struct sdw_bus *bus,
            ^~~~~~~~~~~~~

Cc: stable@vger.kernel.org
Fixes: 7c3cd189b86d ("soundwire: Add Master registration")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Link: https://lore.kernel.org/r/bd685232ea511251eeb9554172f1524eabf9a46e.1570097621.git.msuchanek@suse.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/Kconfig

index f518273cfbe3cbcd4cc4ed0c462550a3c9e11d03..c73bfbaa26596cebb480928cb7816674ef546898 100644 (file)
@@ -5,6 +5,7 @@
 
 menuconfig SOUNDWIRE
        tristate "SoundWire support"
+       depends on ACPI
        help
          SoundWire is a 2-Pin interface with data and clock line ratified
          by the MIPI Alliance. SoundWire is used for transporting data