diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2007-10-23 15:33:20 +0100 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2007-10-23 15:33:20 +0100 |
commit | 198170ab97bbf2ca6362bb7100e9ed86d90aa51f (patch) | |
tree | a0cef7d86db02186d3985dbaa1ff1f2c0c876fb1 /linux-core | |
parent | be2d68914d0992a37b9fb4d93338aeaf2240c4f5 (diff) |
Need fb attached
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_crtc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index bdea20c9..5bc02206 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -914,7 +914,9 @@ bool drm_initial_config(struct drm_device *dev, bool can_grow) if (!output->crtc || !output->crtc->desired_mode) continue; - drm_crtc_set_mode(output->crtc, output->crtc->desired_mode, 0, 0); + /* and needs an attached fb */ + if (output->crtc->fb) + drm_crtc_set_mode(output->crtc, output->crtc->desired_mode, 0, 0); } drm_disable_unused_functions(dev); |