Commit 4b9e78bd authored by Dave Airlie's avatar Dave Airlie

nouveau: fix powerpc build

Reported-by: Ilia Mirkin on irc.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 3439633a
......@@ -21,7 +21,7 @@
*
*/
#include "priv.h"
#include <core/pci.h>
#if defined(__powerpc__)
struct priv {
......@@ -43,7 +43,7 @@ of_read(void *data, u32 offset, u32 length, struct nvkm_bios *bios)
static void *
of_init(struct nvkm_bios *bios, const char *name)
{
struct pci_dev *pdev = bios->subdev.device->pdev;
struct pci_dev *pdev = bios->subdev.device->func->pci(bios->subdev.device)->pdev;
struct device_node *dn;
struct priv *priv;
if (!(dn = pci_device_to_OF_node(pdev)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment