ALSA: cs5535 - Make OLPC-stuff depending on MGEODE_LX
[pandora-kernel.git] / sound / pci / cs5535audio / Makefile
index ad947b4..fda7a94 100644 (file)
@@ -2,10 +2,10 @@
 # Makefile for cs5535audio
 #
 
-snd-cs5535audio-objs := cs5535audio.o cs5535audio_pcm.o
-
-ifeq ($(CONFIG_PM),y)
-snd-cs5535audio-objs += cs5535audio_pm.o
+snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o
+snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o
+ifdef CONFIG_MGEODE_LX
+snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o
 endif
 
 # Toplevel Module Dependency