浏览代码

[PATCH] ppc32: Small build fix for alsa powermac

My newer iMac mini driver doesn't build with verbose debug enabled.

This fixes it, and removes an erroneous error printk (since it's normal
on some machine to not find some gpios on the "first try").

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Benjamin Herrenschmidt 20 年之前
父节点
当前提交
7eb8073ecc
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      sound/ppc/toonie.c

+ 1 - 2
sound/ppc/toonie.c

@@ -279,8 +279,7 @@ static int find_audio_gpio(const char *name, const char *platform,
 	if (! base) {
 	if (! base) {
 		base = (u32 *)get_property(np, "reg", NULL);
 		base = (u32 *)get_property(np, "reg", NULL);
 		if (!base) {
 		if (!base) {
-			DBG("(E) cannot find address for device %s !\n", device);
-			snd_printd("cannot find address for device %s\n", device);
+			DBG("(E) cannot find address for device %s !\n", name);
 			return -ENODEV;
 			return -ENODEV;
 		}
 		}
 		addr = *base;
 		addr = *base;