OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd1f06
)
drm/omap: Init fbdev emulation only when we have displays
author
Peter Ujfalusi
<peter.ujfalusi@ti.com>
Fri, 15 Dec 2017 14:08:31 +0000
(16:08 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000
(09:18 +0200)
Do not try to init the fbdev if either num_crtcs or num_connectors is 0.
In this case we do not have display so the fbdev init would fail anyways.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_fbdev.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/omapdrm/omap_fbdev.c
b/drivers/gpu/drm/omapdrm/omap_fbdev.c
index
be94480
..
0f66c74
100644
(file)
--- a/
drivers/gpu/drm/omapdrm/omap_fbdev.c
+++ b/
drivers/gpu/drm/omapdrm/omap_fbdev.c
@@
-249,6
+249,9
@@
void omap_fbdev_init(struct drm_device *dev)
struct drm_fb_helper *helper;
int ret = 0;
+ if (!priv->num_crtcs || !priv->num_connectors)
+ return;
+
fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL);
if (!fbdev)
goto fail;