[PATCH] ppc32: Small build fix for alsa powermac

From: Benjamin Herrenschmidt
Date: Sun May 01 2005 - 20:43:33 EST


Hi !

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@xxxxxxxxxxxxxxxxxxx>

Index: linux-work/sound/ppc/toonie.c
===================================================================
--- linux-work.orig/sound/ppc/toonie.c 2005-05-02 10:51:00.000000000 +1000
+++ linux-work/sound/ppc/toonie.c 2005-05-02 11:38:22.000000000 +1000
@@ -279,8 +279,7 @@
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;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/