Skip to content

Commit 53558de

Browse files
arndbmchehab
authored andcommitted
media: pvrusb2: fix DVB_CORE dependency
Now that DVB_CORE can be a loadable module, pvrusb2 can run into a link error: ld.lld: error: undefined symbol: dvb_module_probe >>> referenced by pvrusb2-devattr.c >>> drivers/media/usb/pvrusb2/pvrusb2-devattr.o:(pvr2_lgdt3306a_attach) in archive vmlinux.a ld.lld: error: undefined symbol: dvb_module_release >>> referenced by pvrusb2-devattr.c >>> drivers/media/usb/pvrusb2/pvrusb2-devattr.o:(pvr2_dual_fe_attach) in archive vmlinux.a Refine the Kconfig dependencies to avoid this case. Link: https://lore.kernel.org/linux-media/20230117171055.2714621-1-arnd@kernel.org Fixes: 7655c34 ("media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
1 parent ae3c253 commit 53558de

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/media/usb/pvrusb2/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ config VIDEO_PVRUSB2_DVB
3737
bool "pvrusb2 ATSC/DVB support"
3838
default y
3939
depends on VIDEO_PVRUSB2 && DVB_CORE
40+
depends on VIDEO_PVRUSB2=m || DVB_CORE=y
4041
select DVB_LGDT330X if MEDIA_SUBDRV_AUTOSELECT
4142
select DVB_S5H1409 if MEDIA_SUBDRV_AUTOSELECT
4243
select DVB_S5H1411 if MEDIA_SUBDRV_AUTOSELECT

0 commit comments

Comments
 (0)