summaryrefslogtreecommitdiff
path: root/kernel/irq/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/Makefile')
-rw-r--r--kernel/irq/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/irq/Makefile b/kernel/irq/Makefile
index fff17381f0af..639b2e1ac16c 100644
--- a/kernel/irq/Makefile
+++ b/kernel/irq/Makefile
@@ -1,8 +1,10 @@
-
-obj-y := irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o devres.o
+obj-y += devres.o
+ifdef CONFIG_GENERIC_HARDIRQS
+obj-y += irqdesc.o handle.o manage.o spurious.o resend.o chip.o dummychip.o
obj-$(CONFIG_GENERIC_IRQ_CHIP) += generic-chip.o
obj-$(CONFIG_GENERIC_IRQ_PROBE) += autoprobe.o
obj-$(CONFIG_IRQ_DOMAIN) += irqdomain.o
obj-$(CONFIG_PROC_FS) += proc.o
obj-$(CONFIG_GENERIC_PENDING_IRQ) += migration.o
obj-$(CONFIG_PM_SLEEP) += pm.o
+endif