struct intel_connector *connector =
                                to_intel_connector(conn_state->connector);
        struct intel_hdcp *hdcp = &connector->hdcp;
-       bool content_protection_type_changed =
+       bool content_protection_type_changed, desired_and_not_enabled = false;
+
+       if (!connector->hdcp.shim)
+               return;
+
+       content_protection_type_changed =
                (conn_state->hdcp_content_type != hdcp->content_type &&
                 conn_state->content_protection !=
                 DRM_MODE_CONTENT_PROTECTION_UNDESIRED);
-       bool desired_and_not_enabled = false;
 
        /*
         * During the HDCP encryption session if Type change is requested,