of: clean up OF_CONTROL ifdef conditionals
[oweals/u-boot.git] / drivers / core / Makefile
index 1dd25a366074910b9a77cca2b74fcee8f491e21a..11e0276e56b289114a28cfe13a321079dbef8541 100644 (file)
@@ -7,7 +7,7 @@
 obj-y  += device.o lists.o root.o uclass.o util.o
 obj-$(CONFIG_DEVRES) += devres.o
 ifndef CONFIG_SPL_BUILD
-obj-$(CONFIG_OF_CONTROL) += simple-bus.o
+obj-$(CONFIG_$(SPL_)OF_CONTROL) += simple-bus.o
 endif
 obj-$(CONFIG_$(SPL_)DM_DEVICE_REMOVE)  += device-remove.o
 obj-$(CONFIG_DM)       += dump.o