Skip to contentSkip to conversation

sound/oss: remove VIRT_TO_BUS dependency

PATCH Applied Arnd Bergmann 2 participants 2 messages Dec 9, 2015 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/oss: remove VIRT_TO_BUS dependency

The OSS sound drivers used to rely on virt_to_bus(), but don't any more, so we can remove the Kconfig dependency.

As a lot of architectures don't provide VIRT_TO_BUS any more, removing the dependency in sounds/oss/ would make the deprecated drivers appear there, which we probably don't want. Instead I'm replacing the simple dependency with 'VIRT_TO_BUS || RPC || NETWINDER' so we can still build these sound drivers for the platforms that need them, but don't change anything on other architectures.

As a follow-up, we can remove the virt_to_bus() implementation and Kconfig symbol in the ARM architecture.

sound/oss/Kconfig +1 -1
index 48568fdf847f..4033fe58f0cf 100644
@@ -240,7 +240,7 @@ config MSND_FIFOSIZE
 
 menuconfig SOUND_OSS
 	tristate "OSS sound modules"
-	depends on ISA_DMA_API && VIRT_TO_BUS
+	depends on ISA_DMA_API && (VIRT_TO_BUS || ARCH_RPC || ARCH_NETWINDER)
 	depends on !GENERIC_ISA_DMA_SUPPORT_BROKEN
 	help
 	  OSS is the Open Sound System suite of sound card drivers.  They make
Applied
#1 lore raw
Quoted 11 lines · Arnd Bergmann

The OSS sound drivers used to rely on virt_to_bus(), but don't any more, so we can remove the Kconfig dependency.

As a lot of architectures don't provide VIRT_TO_BUS any more, removing the dependency in sounds/oss/ would make the deprecated drivers appear there, which we probably don't want. Instead I'm replacing the simple dependency with 'VIRT_TO_BUS || RPC || NETWINDER' so we can still build these sound drivers for the platforms that need them, but don't change anything on other architectures.

Quoted 4 lines

As a follow-up, we can remove the virt_to_bus() implementation and Kconfig symbol in the ARM architecture.

Applied, thanks.

Takashi

Quoted 15 lines
sound/oss/Kconfig +1 -1
index 48568fdf847f..4033fe58f0cf 100644
@@ -240,7 +240,7 @@ config MSND_FIFOSIZE
 
 menuconfig SOUND_OSS
 	tristate "OSS sound modules"
-	depends on ISA_DMA_API && VIRT_TO_BUS
+	depends on ISA_DMA_API && (VIRT_TO_BUS || ARCH_RPC || ARCH_NETWINDER)
 	depends on !GENERIC_ISA_DMA_SUPPORT_BROKEN
 	help
 	  OSS is the Open Sound System suite of sound card drivers.  They make