[alsa-devel] [PATCH 1/1] ALSA: ASoC: DaVinci: Fix SFFSDR init bug.

Hugo Villeneuve hugo at hugovil.com
Thu Jan 15 21:39:52 CET 2009


Removed call to machine_is_sffsdr() in module init
function because it always returns zero and causes
GCC to optimise and remove all functions of the module.

Signed-off-by: Hugo Villeneuve <hugo at hugovil.com>
---
 sound/soc/davinci/davinci-sffsdr.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c
index 1bbde3e..3e8e6cd 100644
--- a/sound/soc/davinci/davinci-sffsdr.c
+++ b/sound/soc/davinci/davinci-sffsdr.c
@@ -115,9 +115,6 @@ static int __init sffsdr_init(void)
 {
 	int ret;
 
-	if (!machine_is_sffsdr())
-		return -EINVAL;
-
 	sffsdr_snd_device = platform_device_alloc("soc-audio", 0);
 	if (!sffsdr_snd_device) {
 		printk(KERN_ERR "platform device allocation failed\n");
-- 
1.5.4.5



More information about the Alsa-devel mailing list