Browse Source

[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 năm trước cách đây
mục cha
commit
7eb8073ecc
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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) {
 		base = (u32 *)get_property(np, "reg", NULL);
 		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;
 		}
 		addr = *base;