aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2018-05-25 15:25:11 +0000
committerMauro Carvalho Chehab <[email protected]>2018-06-05 13:46:45 +0000
commitee20a4459ee5afdc5c69725abd438e20cc4ac0ad (patch)
tree630995bba61eb906e51f2d12eb2938748614cda6 /drivers/pci/controller/pci-host-common.c
parentmedia: uvcvideo: Prevent setting unavailable flags (diff)
downloadkernel-ee20a4459ee5afdc5c69725abd438e20cc4ac0ad.tar.gz
kernel-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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions