[PATCH 6.12 331/565] Fix access to video_is_primary_device() when compiled without CONFIG_VIDEO