[PATCH] ppc32: Small build fix for alsa powermac
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 May 2005 01:54:23 +0000 (18:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 2 May 2005 01:54:23 +0000 (18:54 -0700)
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>
sound/ppc/toonie.c

index 0f909193b4fb9d7c19e0b7a4870fd715885b5f21..86c74f40cff78cd929e378c1d89657f0680faf98 100644 (file)
@@ -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;