Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds
[linux-2.6] / arch / sh / boards / renesas / r7780rp / Makefile
index 3c93012..b1d20af 100644 (file)
@@ -1,7 +1,10 @@
 #
 # Makefile for the R7780RP-1 specific parts of the kernel
 #
+irqinit-y                      := irq-r7780rp.o
+irqinit-$(CONFIG_SH_R7785RP)   := irq-r7785rp.o
+obj-y                          := setup.o irq.o $(irqinit-y)
 
-obj-y   := setup.o io.o irq.o
-
+ifneq ($(CONFIG_SH_R7785RP),y)
 obj-$(CONFIG_PUSH_SWITCH)      += psw.o
+endif