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

Commit ed7acfae authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs
Browse files

drm/nouveau/pmu: remove reset() hook



The reset hook of pmu_func is never called, and gt215 was the only chip
to implement. Remove this dead code.

Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 8423d75d
Loading
Loading
Loading
Loading
+0 −9
Original line number Original line Diff line number Diff line
@@ -24,17 +24,8 @@
#include "priv.h"
#include "priv.h"
#include "fuc/gt215.fuc3.h"
#include "fuc/gt215.fuc3.h"


static void
gt215_pmu_reset(struct nvkm_pmu *pmu)
{
	struct nvkm_device *device = pmu->subdev.device;
	nvkm_mask(device, 0x022210, 0x00000001, 0x00000000);
	nvkm_mask(device, 0x022210, 0x00000001, 0x00000001);
}

static const struct nvkm_pmu_func
static const struct nvkm_pmu_func
gt215_pmu = {
gt215_pmu = {
	.reset = gt215_pmu_reset,
	.code.data = gt215_pmu_code,
	.code.data = gt215_pmu_code,
	.code.size = sizeof(gt215_pmu_code),
	.code.size = sizeof(gt215_pmu_code),
	.data.data = gt215_pmu_data,
	.data.data = gt215_pmu_data,
+0 −2
Original line number Original line Diff line number Diff line
@@ -8,8 +8,6 @@ int nvkm_pmu_new_(const struct nvkm_pmu_func *, struct nvkm_device *,
		  int index, struct nvkm_pmu **);
		  int index, struct nvkm_pmu **);


struct nvkm_pmu_func {
struct nvkm_pmu_func {
	void (*reset)(struct nvkm_pmu *);

	struct {
	struct {
		u32 *data;
		u32 *data;
		u32  size;
		u32  size;