From: Benjamin Herrenschmidt Date: Mon, 2 May 2005 01:54:23 +0000 (-0700) Subject: [PATCH] ppc32: Small build fix for alsa powermac X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7eb8073ecc8251530ebbd9be29cc33e54d37bdc2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 0f909193b4fb..86c74f40cff7 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;