From: Michael Opdenacker Date: Wed, 30 Jan 2008 12:33:18 +0000 (+0100) Subject: x86: fix unconditional arch/x86/kernel/pcspeaker.o compiling X-Git-Tag: upstream/snapshot3+hdmi~28324^2~250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67926892ef7a7fbc76de607120d44416019fdf07;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86: fix unconditional arch/x86/kernel/pcspeaker.o compiling do not add the pcspkr platform device if pcspkr support is disabled. Signed-off-by: Michael Opdenacker Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index c414c45..5bdb0f0 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -67,7 +67,10 @@ obj-$(CONFIG_MGEODE_LX) += geode_32.o mfgpt_32.o obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o + +ifdef CONFIG_INPUT_PCSPKR obj-y += pcspeaker.o +endif obj-$(CONFIG_SCx200) += scx200_32.o