/* Find the GPU to use with our display controller.  */
static int vmlfb_get_gpu(struct vml_par *par)
/* Find the GPU to use with our display controller.  */
static int vmlfb_get_gpu(struct vml_par *par)
{
	mutex_lock(&vml_mutex);
	par->gpu = pci_get_device(PCI_VENDOR_ID_INTEL, VML_DEVICE_GPU, NULL);
	if (!par->gpu) {
		mutex_unlock(&vml_mutex);
		return -ENODEV;
	}
	mutex_unlock(&vml_mutex);
	if (pci_enable_device(par->gpu) < 0)
		return -ENODEV;
	return 0;
}