]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/kernel/setup-common.c
Merge git://git.infradead.org/embedded-2.6
[karo-tx-linux.git] / arch / powerpc / kernel / setup-common.c
index db540eab09f45befe7ebfbcd64984b5c76d528ea..61a3f4132087d88868c0240d0de2f0a74d378f18 100644 (file)
@@ -500,6 +500,7 @@ void __init smp_setup_cpu_sibling_map(void)
 }
 #endif /* CONFIG_SMP */
 
+#ifdef CONFIG_PCSPKR_PLATFORM
 static __init int add_pcspkr(void)
 {
        struct device_node *np;
@@ -522,6 +523,7 @@ static __init int add_pcspkr(void)
        return ret;
 }
 device_initcall(add_pcspkr);
+#endif /* CONFIG_PCSPKR_PLATFORM */
 
 void probe_machine(void)
 {