Lekensteyn

Hack for detecting _ROM on Lenovo Y470

Dec 27th, 2011
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.62 KB | None | 0 0
  1. diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.c b/drivers/gpu/drm/nouveau/nouveau_acpi.c
  2. index 9590f8d..8f955e1 100644
  3. --- a/drivers/gpu/drm/nouveau/nouveau_acpi.c
  4. +++ b/drivers/gpu/drm/nouveau/nouveau_acpi.c
  5. @@ -407,8 +407,11 @@ bool nouveau_acpi_rom_supported(struct pci_dev *pdev)
  6.         return false;
  7.  
  8.     status = acpi_get_handle(dhandle, "_ROM", &rom_handle);
  9. -   if (ACPI_FAILURE(status))
  10. -       return false;
  11. +   if (ACPI_FAILURE(status)) {
  12. +       status = acpi_get_handle(dhandle, "PEGP._ROM", &rom_handle);
  13. +       if (ACPI_FAILURE(status))
  14. +           return false;
  15. +   }
  16.  
  17.     nouveau_dsm_priv.rom_handle = rom_handle;
  18.     return true;
Add Comment
Please, Sign In to add comment