summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-05-10 11:16:26 +0000
committerDave Airlie <airlied@linux.ie>2004-05-10 11:16:26 +0000
commita1160ba2793b6c17a8aeb31b0d4cc17f3439cf9a (patch)
tree73dd5715dbdfad7ea76dbff08ea523bfff827d4d
parentc47b611b08327da4a5249d222079be07c26fb2ff (diff)
do some real testing and fix the DRM initialising and unloading
-rw-r--r--linux-core/drm_drv.c4
-rw-r--r--linux/drm_drv.h4
2 files changed, 6 insertions, 2 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);
diff --git a/linux/drm_drv.h b/linux/drm_drv.h
index 67f2eac0..d5274094 100644
--- a/linux/drm_drv.h
+++ b/linux/drm_drv.h
@@ -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);