[PATCH] remove config ordering/dependency between ucb1400-ts and sound subsystem

Commit 2d4ba4a3b9aef95d328d74a17ae84f8d658059e2 introduced a dependency
that was never meant to exist when the ac97_bus.c module was created.
Move ac97_bus.c up the directory hierarchy to make sure it is built when
selected even if sound is configured out so things work as originally
intended.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Nicolas Pitre and committed by Linus Torvalds e1036502 741441ab

+13 -8
+1 -1
drivers/input/touchscreen/Kconfig
··· 146 146 147 147 config TOUCHSCREEN_UCB1400 148 148 tristate "Philips UCB1400 touchscreen" 149 - depends on SND_AC97_BUS 149 + select AC97_BUS 150 150 help 151 151 This enables support for the Philips UCB1400 touchscreen interface. 152 152 The UCB1400 is an AC97 audio codec. The touchscreen interface
+8
sound/Kconfig
··· 93 93 94 94 endif 95 95 96 + config AC97_BUS 97 + tristate 98 + help 99 + This is used to avoid config and link hard dependencies between the 100 + sound subsystem and other function drivers completely unrelated to 101 + sound although they're sharing the AC97 bus. Concerned drivers 102 + should "select" this. 103 + 96 104 endmenu
+3
sound/Makefile
··· 8 8 obj-$(CONFIG_SND) += core/ i2c/ drivers/ isa/ pci/ ppc/ arm/ synth/ usb/ sparc/ parisc/ pcmcia/ mips/ 9 9 obj-$(CONFIG_SND_AOA) += aoa/ 10 10 11 + # This one must be compilable even if sound is configured out 12 + obj-$(CONFIG_AC97_BUS) += ac97_bus.o 13 + 11 14 ifeq ($(CONFIG_SND),y) 12 15 obj-y += last.o 13 16 endif
+1 -5
sound/drivers/Kconfig
··· 26 26 config SND_AC97_CODEC 27 27 tristate 28 28 select SND_PCM 29 - select SND_AC97_BUS 30 - 31 - config SND_AC97_BUS 32 - tristate 33 - 29 + select AC97_BUS 34 30 35 31 config SND_DUMMY 36 32 tristate "Dummy (/dev/null) soundcard"
-2
sound/pci/ac97/Makefile
··· 10 10 endif 11 11 12 12 snd-ak4531-codec-objs := ak4531_codec.o 13 - snd-ac97-bus-objs := ac97_bus.o 14 13 15 14 # Toplevel Module Dependency 16 15 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o 17 16 obj-$(CONFIG_SND_ENS1370) += snd-ak4531-codec.o 18 - obj-$(CONFIG_SND_AC97_BUS) += snd-ac97-bus.o 19 17 20 18 obj-m := $(sort $(obj-m))
sound/pci/ac97/ac97_bus.c sound/ac97_bus.c