aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/marvell-ccic/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-05-25 11:25:11 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-06-05 09:46:45 -0400
commitee20a4459ee5afdc5c69725abd438e20cc4ac0ad (patch)
tree630995bba61eb906e51f2d12eb2938748614cda6 /drivers/media/platform/marvell-ccic/Makefile
parentmedia: uvcvideo: Prevent setting unavailable flags (diff)
downloadlinux-dev-ee20a4459ee5afdc5c69725abd438e20cc4ac0ad.tar.xz
linux-dev-ee20a4459ee5afdc5c69725abd438e20cc4ac0ad.zip
media: marvel-ccic: allow ccic and mmp drivers to coexist
Randconfig builds fail when one of the two is a built-in driver and the other one is a loadable module: drivers/media/platform/marvell-ccic/mcam-core.o: In function `mccic_register': mcam-core.c:(.text+0x2594): undefined reference to `__this_module' drivers/media/platform/marvell-ccic/mcam-core.o:(.rodata+0x50): undefined reference to `__this_module' The problem is that mcam-core.c can not be built both ways at the smae time. However, we can make kbuild take care of that by making the core driver a separate module, which can be either built-in or loadable as needed. Making it a separate module requires exporting a few symbols and adding the module license from the header. Fixes: 0a9c643c8faa ("media: marvel-ccic: re-enable mmp-driver build") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/marvell-ccic/Makefile')
-rw-r--r--drivers/media/platform/marvell-ccic/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/platform/marvell-ccic/Makefile b/drivers/media/platform/marvell-ccic/Makefile
index 05a792c579a2..b3a4d0cdccb8 100644
--- a/drivers/media/platform/marvell-ccic/Makefile
+++ b/drivers/media/platform/marvell-ccic/Makefile
@@ -1,6 +1,5 @@
-obj-$(CONFIG_VIDEO_CAFE_CCIC) += cafe_ccic.o
-cafe_ccic-y := cafe-driver.o mcam-core.o
-
-obj-$(CONFIG_VIDEO_MMP_CAMERA) += mmp_camera.o
-mmp_camera-y := mmp-driver.o mcam-core.o
+obj-$(CONFIG_VIDEO_CAFE_CCIC) += cafe_ccic.o mcam-core.o
+cafe_ccic-y := cafe-driver.o
+obj-$(CONFIG_VIDEO_MMP_CAMERA) += mmp_camera.o mcam-core.o
+mmp_camera-y := mmp-driver.o