]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/bochs: drop mode_config_initialized
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Apr 2019 09:04:58 +0000 (11:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Apr 2019 20:45:37 +0000 (22:45 +0200)
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
drivers/gpu/drm/bochs/bochs.h
drivers/gpu/drm/bochs/bochs_kms.c

index 03711394f1eda3315e1695b7dfa7e05e7b55effc..a7f6723bebdd471fc4e757663d8bfa0eb56ca2a4 100644 (file)
@@ -73,7 +73,6 @@ struct bochs_device {
        struct drm_crtc crtc;
        struct drm_encoder encoder;
        struct drm_connector connector;
-       bool mode_config_initialized;
 
        /* ttm */
        struct {
index 93cb27f93d393c3854dc8367452b0c9014fdc453..485f9cf05e8b8fd2c4fdf70ecb3effe72e9f07a0 100644 (file)
@@ -267,7 +267,6 @@ const struct drm_mode_config_funcs bochs_mode_funcs = {
 int bochs_kms_init(struct bochs_device *bochs)
 {
        drm_mode_config_init(bochs->dev);
-       bochs->mode_config_initialized = true;
 
        bochs->dev->mode_config.max_width = 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)
 {
-       if (bochs->mode_config_initialized) {
-               drm_atomic_helper_shutdown(bochs->dev);
-               drm_mode_config_cleanup(bochs->dev);
-               bochs->mode_config_initialized = false;
-       }
+       drm_atomic_helper_shutdown(bochs->dev);
+       drm_mode_config_cleanup(bochs->dev);
 }