[PATCH AUTOSEL 6.17-6.12] Fix access to video_is_primary_device() when compiled without CONFIG_VIDEO