OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c74ca7
)
drm/qxl: remove conflicting framebuffers earlier
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 1 Mar 2019 09:25:01 +0000
(10:25 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 7 Mar 2019 09:34:38 +0000
(10:34 +0100)
Add error checking while being at it.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
http://patchwork.freedesktop.org/patch/msgid/20190301092502.30948-4-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_drv.c
b/drivers/gpu/drm/qxl/qxl_drv.c
index
11a76b6
..
f33e349
100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_drv.c
+++ b/
drivers/gpu/drm/qxl/qxl_drv.c
@@
-79,6
+79,10
@@
qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (ret)
goto free_dev;
+ ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "qxl");
+ if (ret)
+ goto disable_pci;
+
ret = qxl_device_init(qdev, &qxl_driver, pdev);
if (ret)
goto disable_pci;
@@
-94,7
+98,6
@@
qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (ret)
goto modeset_cleanup;
- drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "qxl");
drm_fbdev_generic_setup(&qdev->ddev, 32);
return 0;