summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 67f2eac0..d5274094 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -652,7 +652,9 @@ static int drm_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
*/
class_simple_device_add(DRM(stub_info).drm_class,
MKDEV(DRM_MAJOR, dev->minor), &pdev->dev, "card%d", dev->minor);
-
+
+ return 0;
+
error_out_unreg:
DRM(stub_unregister)(dev->minor);
DRM(takedown)(dev);