mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
drm/virtio: use drmm_mode_config_init
Use managed init call to simplify cleanup. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/20200908070723.6394-2-kraxel@redhat.com
This commit is contained in:
@@ -186,7 +186,11 @@ int virtio_gpu_init(struct drm_device *dev)
|
||||
num_capsets, &num_capsets);
|
||||
DRM_INFO("number of cap sets: %d\n", num_capsets);
|
||||
|
||||
virtio_gpu_modeset_init(vgdev);
|
||||
ret = virtio_gpu_modeset_init(vgdev);
|
||||
if (ret) {
|
||||
DRM_ERROR("modeset init failed\n");
|
||||
goto err_scanouts;
|
||||
}
|
||||
|
||||
virtio_device_ready(vgdev->vdev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user