summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-05-01 18:54:23 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 18:54:23 -0700
commit7eb8073ecc8251530ebbd9be29cc33e54d37bdc2 (patch)
tree4d6a10cb3ce9f216a4d0e7a6000374f45929bf70 /sound
parent15fd56867b6b94dc829d880bc078428eb41859c8 (diff)
[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>
Diffstat (limited to 'sound')
-rw-r--r--sound/ppc/toonie.c3
1 files changed, 1 insertions, 2 deletions
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;