Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47e7df39 authored by Vince Hsu's avatar Vince Hsu Committed by Ben Skeggs
Browse files

drm/nouveau/pwr: make nouveau_pwr_pgob() non-static



The platform device does not use the common nouveau_pwr_init() to initialize
the PWR, but it does need the .pgob() be assigned to avoid NULL pointer
dereference in graph/nve4.c.

Signed-off-by: default avatarVince Hsu <vinceh@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f8a85461
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@

#include "priv.h"

static void
void
nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable)
{
	const struct nvkm_pwr_impl *impl = (void *)nv_oclass(ppwr);
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ int _nouveau_pwr_ctor(struct nouveau_object *, struct nouveau_object *,
#define _nouveau_pwr_dtor _nouveau_subdev_dtor
int _nouveau_pwr_init(struct nouveau_object *);
int _nouveau_pwr_fini(struct nouveau_object *, bool);
void nouveau_pwr_pgob(struct nouveau_pwr *ppwr, bool enable);

struct nvkm_pwr_impl {
	struct nouveau_oclass base;