omap4: emif: fix error in driver
[oweals/u-boot.git] / arch / arm / cpu / armv7 / omap-common / Makefile
index ea2545dca8f530dffa9ce2842015be3b6bb91598..a684611265c6110e16956e136d16efda2403e104 100644 (file)
@@ -33,7 +33,7 @@ ifdef CONFIG_OMAP
 COBJS  += gpio.o
 endif
 
-ifdef CONFIG_OMAP44XX
+ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
 COBJS  += hwinit-common.o
 COBJS  += clocks-common.o
 COBJS  += emif-common.o
@@ -51,7 +51,7 @@ endif
 endif
 
 ifndef CONFIG_SPL_BUILD
-ifdef CONFIG_OMAP44XX
+ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
 COBJS  += mem-common.o
 endif
 endif