From: Benjamin Herrenschmidt Date: Mon, 2 May 2005 01:54:23 +0000 (-0700) Subject: [PATCH] ppc32: Small build fix for alsa powermac X-Git-Tag: v2.6.12-rc4~136^2~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eb8073ecc8251530ebbd9be29cc33e54d37bdc2;p=linux-2.6 [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 Signed-off-by: Linus Torvalds --- diff --git a/sound/ppc/toonie.c b/sound/ppc/toonie.c index 0f909193b4..86c74f40cf 100644 --- a/sound/ppc/toonie.c +++ b/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;