Skip to content

Commit 66459fa

Browse files
author
Thomas Zimmermann
committed
drm/udl: Remove error check from fbdev setup
Remove the error check from the fbdev setup function. The driver's probe function should not depend on a DRM client's state. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Noralf Trønnes <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Acked-by: Gerd Hoffmann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f5ef076 commit 66459fa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/gpu/drm/udl/udl_drv.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,10 @@ static int udl_usb_probe(struct usb_interface *interface,
9797

9898
DRM_INFO("Initialized udl on minor %d\n", udl->drm.primary->index);
9999

100-
r = drm_fbdev_generic_setup(&udl->drm, 0);
101-
if (r)
102-
goto err_drm_dev_unregister;
100+
drm_fbdev_generic_setup(&udl->drm, 0);
103101

104102
return 0;
105103

106-
err_drm_dev_unregister:
107-
drm_dev_unregister(&udl->drm);
108104
err_free:
109105
drm_dev_put(&udl->drm);
110106
return r;

0 commit comments

Comments
 (0)