mirror of https://gitee.com/openkylin/linux.git
drm/bochs: drop mode_config_initialized
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20190402090459.12126-2-kraxel@redhat.com
This commit is contained in:
parent
e543e0293c
commit
31c1792456
|
@ -73,7 +73,6 @@ struct bochs_device {
|
||||||
struct drm_crtc crtc;
|
struct drm_crtc crtc;
|
||||||
struct drm_encoder encoder;
|
struct drm_encoder encoder;
|
||||||
struct drm_connector connector;
|
struct drm_connector connector;
|
||||||
bool mode_config_initialized;
|
|
||||||
|
|
||||||
/* ttm */
|
/* ttm */
|
||||||
struct {
|
struct {
|
||||||
|
|
|
@ -267,7 +267,6 @@ const struct drm_mode_config_funcs bochs_mode_funcs = {
|
||||||
int bochs_kms_init(struct bochs_device *bochs)
|
int bochs_kms_init(struct bochs_device *bochs)
|
||||||
{
|
{
|
||||||
drm_mode_config_init(bochs->dev);
|
drm_mode_config_init(bochs->dev);
|
||||||
bochs->mode_config_initialized = true;
|
|
||||||
|
|
||||||
bochs->dev->mode_config.max_width = 8192;
|
bochs->dev->mode_config.max_width = 8192;
|
||||||
bochs->dev->mode_config.max_height = 8192;
|
bochs->dev->mode_config.max_height = 8192;
|
||||||
|
@ -292,9 +291,6 @@ int bochs_kms_init(struct bochs_device *bochs)
|
||||||
|
|
||||||
void bochs_kms_fini(struct bochs_device *bochs)
|
void bochs_kms_fini(struct bochs_device *bochs)
|
||||||
{
|
{
|
||||||
if (bochs->mode_config_initialized) {
|
drm_atomic_helper_shutdown(bochs->dev);
|
||||||
drm_atomic_helper_shutdown(bochs->dev);
|
drm_mode_config_cleanup(bochs->dev);
|
||||||
drm_mode_config_cleanup(bochs->dev);
|
|
||||||
bochs->mode_config_initialized = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue