Skip to content

Commit

Permalink
nouveau: fix powerpc build
Browse files Browse the repository at this point in the history
Reported-by: Ilia Mirkin on irc.
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Aug 28, 2015
1 parent 3439633 commit 4b9e78b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
*/
#include "priv.h"

#include <core/pci.h>

#if defined(__powerpc__)
struct priv {
Expand All @@ -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)))
Expand Down

0 comments on commit 4b9e78b

Please sign in to comment.