File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,6 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,
411
411
return ast ;
412
412
dev = & ast -> base ;
413
413
414
- dev -> pdev = pdev ;
415
414
pci_set_drvdata (pdev , dev );
416
415
417
416
ast -> regs = pcim_iomap (pdev , 1 , 0 );
@@ -453,8 +452,8 @@ struct ast_private *ast_device_create(const struct drm_driver *drv,
453
452
454
453
/* map reserved buffer */
455
454
ast -> dp501_fw_buf = NULL ;
456
- if (dev -> vram_mm -> vram_size < pci_resource_len (dev -> pdev , 0 )) {
457
- ast -> dp501_fw_buf = pci_iomap_range (dev -> pdev , 0 , dev -> vram_mm -> vram_size , 0 );
455
+ if (dev -> vram_mm -> vram_size < pci_resource_len (pdev , 0 )) {
456
+ ast -> dp501_fw_buf = pci_iomap_range (pdev , 0 , dev -> vram_mm -> vram_size , 0 );
458
457
if (!ast -> dp501_fw_buf )
459
458
drm_info (dev , "failed to map reserved buffer!\n" );
460
459
}
You can’t perform that action at this time.
0 commit comments