diff options
author | Dave Airlie <airlied@redhat.com> | 2015-08-28 04:18:10 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-08-28 04:18:10 -0400 |
commit | 4b9e78bd9f0efcf9e82b4886de7a4289dbf3cffe (patch) | |
tree | cec7a49e0fe21cb906bc8e934e2fd0e2fb100994 | |
parent | 3439633a85891626abf124a52f2c3e3e83cca9d0 (diff) |
nouveau: fix powerpc build
Reported-by: Ilia Mirkin on irc.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c index 29a37f03ebf1..bd60d7dd09f5 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | #include "priv.h" | 23 | #include "priv.h" |
24 | 24 | #include <core/pci.h> | |
25 | 25 | ||
26 | #if defined(__powerpc__) | 26 | #if defined(__powerpc__) |
27 | struct priv { | 27 | struct priv { |
@@ -43,7 +43,7 @@ of_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios) | |||
43 | static void * | 43 | static void * |
44 | of_init(struct nvkm_bios *bios, const char *name) | 44 | of_init(struct nvkm_bios *bios, const char *name) |
45 | { | 45 | { |
46 | struct pci_dev *pdev = bios->subdev.device->pdev; | 46 | struct pci_dev *pdev = bios->subdev.device->func->pci(bios->subdev.device)->pdev; |
47 | struct device_node *dn; | 47 | struct device_node *dn; |
48 | struct priv *priv; | 48 | struct priv *priv; |
49 | if (!(dn = pci_device_to_OF_node(pdev))) | 49 | if (!(dn = pci_device_to_OF_node(pdev))) |