Commit da020a45 authored by Dave Airlie's avatar Dave Airlie

drm: add pci_enable_device

Add pci_enable_device for any PCI device we want to use.

From: Bjorn Helgaas <bjorn.helgaas@hp.com>
Approved-by: default avatarDavid Airlie <airlied@linux.ie>
parent 7690df44
......@@ -480,6 +480,9 @@ static int DRM(probe)(struct pci_dev *pdev)
if (DRM(numdevs) >= MAX_DEVICES)
return -ENODEV;
if ((retcode=pci_enable_device(pdev)))
return retcode;
dev = &(DRM(device)[DRM(numdevs)]);
memset( (void *)dev, 0, sizeof(*dev) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment