mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	drm: Remove flag FBINFO_DEFAULT from fbdev emulation
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do not set it. Flags should signal differences from the default values. After cleaning up all occurrences of FBINFO_DEFAULT, the token will be removed. v2: * fix commit message (Miguel) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-2-tzimmermann@suse.de
This commit is contained in:
		
							parent
							
								
									61b7369483
								
							
						
					
					
						commit
						40e324e0d8
					
				
					 4 changed files with 2 additions and 4 deletions
				
			
		|  | @ -123,7 +123,6 @@ static int drm_fbdev_dma_helper_fb_probe(struct drm_fb_helper *fb_helper, | |||
| 	drm_fb_helper_fill_info(info, fb_helper, sizes); | ||||
| 
 | ||||
| 	info->fbops = &drm_fbdev_dma_fb_ops; | ||||
| 	info->flags = FBINFO_DEFAULT; | ||||
| 
 | ||||
| 	/* screen */ | ||||
| 	info->flags |= FBINFO_VIRTFB; /* system memory */ | ||||
|  |  | |||
|  | @ -109,7 +109,6 @@ static int drm_fbdev_generic_helper_fb_probe(struct drm_fb_helper *fb_helper, | |||
| 	drm_fb_helper_fill_info(info, fb_helper, sizes); | ||||
| 
 | ||||
| 	info->fbops = &drm_fbdev_generic_fb_ops; | ||||
| 	info->flags = FBINFO_DEFAULT; | ||||
| 
 | ||||
| 	/* screen */ | ||||
| 	info->flags |= FBINFO_VIRTFB | FBINFO_READS_FAST; | ||||
|  |  | |||
|  | @ -215,7 +215,7 @@ static int psb_fbdev_fb_probe(struct drm_fb_helper *fb_helper, | |||
| 	} | ||||
| 
 | ||||
| 	info->fbops = &psb_fbdev_fb_ops; | ||||
| 	info->flags = FBINFO_DEFAULT; | ||||
| 
 | ||||
| 	/* Accessed stolen memory directly */ | ||||
| 	info->screen_base = dev_priv->vram_addr + backing->offset; | ||||
| 	info->screen_size = size; | ||||
|  |  | |||
|  | @ -253,7 +253,7 @@ static int radeon_fbdev_fb_helper_fb_probe(struct drm_fb_helper *fb_helper, | |||
| 	} | ||||
| 
 | ||||
| 	info->fbops = &radeon_fbdev_fb_ops; | ||||
| 	info->flags = FBINFO_DEFAULT; | ||||
| 
 | ||||
| 	/* radeon resume is fragile and needs a vt switch to help it along */ | ||||
| 	info->skip_vt_switch = false; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Thomas Zimmermann
						Thomas Zimmermann