static bool intel_dsm_pci_probe(struct pci_dev *pdev) { acpi_handle dhandle, intel_handle; acpi_status status; int ret; dhandle = DEVICE_ACPI_HANDLE(&pdev->dev); if (!dhandle) return false; status = acpi_get_handle(dhandle, "_DSM", &intel_handle); if (ACPI_FAILURE(status)) { DRM_DEBUG_KMS("no _DSM method for intel device\n"); return false; } ret = intel_dsm(dhandle, INTEL_DSM_FN_SUPPORTED_FUNCTIONS, 0); if (ret < 0) { DRM_ERROR("failed to get supported _DSM functions\n"); return false; } intel_dsm_priv.dhandle = dhandle; intel_dsm_platform_mux_info(); return true; }
static bool intel_dsm_pci_probe(struct pci_dev *pdev) { acpi_handle dhandle; dhandle = ACPI_HANDLE(&pdev->dev); if (!dhandle) return false; if (!acpi_check_dsm(dhandle, intel_dsm_guid, INTEL_DSM_REVISION_ID, 1 << INTEL_DSM_FN_PLATFORM_MUX_INFO)) { DRM_DEBUG_KMS("no _DSM method for intel device\n"); return false; } intel_dsm_priv.dhandle = dhandle; intel_dsm_platform_mux_info(); return true; }