]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowacpi.c
drm/nouveau/bios: convert to new-style nvkm_subdev
[mirror_ubuntu-eoan-kernel.git] / drivers / gpu / drm / nouveau / nvkm / subdev / bios / shadowacpi.c
index 74604d4a7ff2cd1830700a8394448ba366c39e22..468066817c75c79a1d493826b96c8e3fdf3fd886 100644 (file)
@@ -88,7 +88,7 @@ acpi_read_slow(void *data, u32 offset, u32 length, struct nvkm_bios *bios)
 static void *
 acpi_init(struct nvkm_bios *bios, const char *name)
 {
-       if (!nouveau_acpi_rom_supported(nv_device(bios)->pdev))
+       if (!nouveau_acpi_rom_supported(bios->subdev.device->pdev))
                return ERR_PTR(-ENODEV);
        return NULL;
 }