OSDN Git Service

staging: vboxvideo: Let DRM core handle connector registering
authorHans de Goede <hdegoede@redhat.com>
Tue, 18 Sep 2018 17:44:27 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 10:28:02 +0000 (12:28 +0200)
Registering the connector explicitly right after creation is not necessary
for modesetting drivers, because drm_dev_register already takes care of
this on the core side, by calling drm_modeset_register_all.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vboxvideo/vbox_mode.c

index e7d70ce..70701a6 100644 (file)
@@ -690,7 +690,6 @@ static int vbox_connector_init(struct drm_device *dev,
                                   dev->mode_config.suggested_x_property, 0);
        drm_object_attach_property(&connector->base,
                                   dev->mode_config.suggested_y_property, 0);
-       drm_connector_register(connector);
 
        drm_connector_attach_encoder(connector, encoder);