drm: Drop locking cargo-cult from drm_mode_config_init
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Dec 2016 23:08:05 +0000 (00:08 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 18 Dec 2016 13:18:12 +0000 (14:18 +0100)
This is single-threaded setup code, no need for locks. And anyway,
all properties need to be set up before the driver is registered
anyway, they can't be hot-added.

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161213230814.19598-5-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_mode_config.c

index 5aba075f112c47c3eb40fc69ab550bcd8b0d50a9..a9a40dc629d39a6f33403371c26e91c43446f82f 100644 (file)
@@ -375,9 +375,7 @@ void drm_mode_config_init(struct drm_device *dev)
        idr_init(&dev->mode_config.tile_idr);
        ida_init(&dev->mode_config.connector_ida);
 
-       drm_modeset_lock_all(dev);
        drm_mode_create_standard_properties(dev);
-       drm_modeset_unlock_all(dev);
 
        /* Just to be sure */
        dev->mode_config.num_fb = 0;