File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 35
35
36
36
#include "ast_drv.h"
37
37
38
- static int ast_init_pci_config (struct pci_dev * pdev )
39
- {
40
- int err ;
41
- u16 pcis04 ;
42
-
43
- err = pci_read_config_word (pdev , PCI_COMMAND , & pcis04 );
44
- if (err )
45
- goto out ;
46
-
47
- pcis04 |= PCI_COMMAND_MEMORY | PCI_COMMAND_IO ;
48
-
49
- err = pci_write_config_word (pdev , PCI_COMMAND , pcis04 );
50
-
51
- out :
52
- return pcibios_err_to_errno (err );
53
- }
54
-
55
38
static bool ast_is_vga_enabled (struct drm_device * dev )
56
39
{
57
40
struct ast_device * ast = to_ast_device (dev );
@@ -483,10 +466,6 @@ struct ast_device *ast_device_create(const struct drm_driver *drv,
483
466
return ERR_PTR (- EIO );
484
467
}
485
468
486
- ret = ast_init_pci_config (pdev );
487
- if (ret )
488
- return ERR_PTR (ret );
489
-
490
469
if (!ast_is_vga_enabled (dev )) {
491
470
drm_info (dev , "VGA not enabled on entry, requesting chip POST\n" );
492
471
need_post = true;
You can’t perform that action at this time.
0 commit comments