Merge tag 'socfpga_arm32_defconfig_for_v5.2' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-microblaze.git] / drivers / media / Makefile
index 985d35e..4a330d0 100644 (file)
@@ -6,6 +6,12 @@
 media-objs     := media-device.o media-devnode.o media-entity.o \
                   media-request.o
 
+ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
+       ifeq ($(CONFIG_USB),y)
+               media-objs += media-dev-allocator.o
+       endif
+endif
+
 #
 # I2C drivers should come before other drivers, otherwise they'll fail
 # when compiled as builtin drivers