diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-02 23:38:13 -0800 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-02 23:38:13 -0800 | 
| commit | 467832032cc07626880363efa8625719c16c04eb (patch) | |
| tree | ee9a62c04f0b3106e412bc1b2dd1cea5566d5ca7 /drivers/gpu/drm/drm_fb_helper.c | |
| parent | 66d2a5952eab875f1286e04f738ef029afdaf013 (diff) | |
| parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) | |
| download | olio-linux-3.10-467832032cc07626880363efa8625719c16c04eb.tar.xz olio-linux-3.10-467832032cc07626880363efa8625719c16c04eb.zip  | |
Merge commit 'v2.6.32' into next
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
| -rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 9c924614c41..65ef011fa8b 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -599,7 +599,7 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,  	struct drm_framebuffer *fb = fb_helper->fb;  	int depth; -	if (var->pixclock == -1 || !var->pixclock) +	if (var->pixclock != 0)  		return -EINVAL;  	/* Need to resize the fb object !!! */ @@ -691,7 +691,7 @@ int drm_fb_helper_set_par(struct fb_info *info)  	int ret;  	int i; -	if (var->pixclock != -1) { +	if (var->pixclock != 0) {  		DRM_ERROR("PIXEL CLCOK SET\n");  		return -EINVAL;  	} @@ -707,7 +707,7 @@ int drm_fb_helper_set_par(struct fb_info *info)  		if (crtc->fb == fb_helper->crtc_info[i].mode_set.fb) {  			mutex_lock(&dev->mode_config.mutex); -			ret = crtc->funcs->set_config(&fb_helper->crtc_info->mode_set); +			ret = crtc->funcs->set_config(&fb_helper->crtc_info[i].mode_set);  			mutex_unlock(&dev->mode_config.mutex);  			if (ret)  				return ret; @@ -904,7 +904,7 @@ int drm_fb_helper_single_fb_probe(struct drm_device *dev,  	fb_helper->fb = fb;  	if (new_fb) { -		info->var.pixclock = -1; +		info->var.pixclock = 0;  		if (register_framebuffer(info) < 0)  			return -EINVAL;  	} else {  |