[PATCH] ppc32: Small build fix for alsa powermac
[linux-2.6.git] / sound / ppc / toonie.c
index 0f90919..86c74f4 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;