diff options
Diffstat (limited to 'drivers/gpu/drm/ast/ast_drv.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_drv.c | 14 | 
1 files changed, 3 insertions, 11 deletions
| diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c index b7ba22dddcad..0b58f7aee6b0 100644 --- a/drivers/gpu/drm/ast/ast_drv.c +++ b/drivers/gpu/drm/ast/ast_drv.c @@ -59,7 +59,6 @@ static struct drm_driver driver;  static const struct pci_device_id pciidlist[] = {  	AST_VGA_DEVICE(PCI_CHIP_AST2000, NULL),  	AST_VGA_DEVICE(PCI_CHIP_AST2100, NULL), -	/*	AST_VGA_DEVICE(PCI_CHIP_AST1180, NULL), - don't bind to 1180 for now */  	{0, 0, 0},  }; @@ -91,15 +90,13 @@ static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)  	ast_kick_out_firmware_fb(pdev); -	ret = pci_enable_device(pdev); +	ret = pcim_enable_device(pdev);  	if (ret)  		return ret;  	dev = drm_dev_alloc(&driver, &pdev->dev); -	if (IS_ERR(dev)) { -		ret = PTR_ERR(dev); -		goto err_pci_disable_device; -	} +	if (IS_ERR(dev)) +		return  PTR_ERR(dev);  	dev->pdev = pdev;  	pci_set_drvdata(pdev, dev); @@ -120,8 +117,6 @@ err_ast_driver_unload:  	ast_driver_unload(dev);  err_drm_dev_put:  	drm_dev_put(dev); -err_pci_disable_device: -	pci_disable_device(pdev);  	return ret;  } @@ -193,9 +188,6 @@ static int ast_pm_freeze(struct device *dev)  {  	struct pci_dev *pdev = to_pci_dev(dev);  	struct drm_device *ddev = pci_get_drvdata(pdev); - -	if (!ddev || !ddev->dev_private) -		return -ENODEV;  	return ast_drm_freeze(ddev);  } |