drm/nouveau/pmu: remove reset() hook
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 27 Oct 2016 03:48:51 +0000 (12:48 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:38 +0000 (14:04 +1000)
The reset hook of pmu_func is never called, and gt215 was the only chip
to implement. Remove this dead code.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gt215.c
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/priv.h

index 8ba7fa4ca75bdaeec4026156da21bb0a9f279fa1..dcf9eaf274aa91929b9eb30b864d141b181ae187 100644 (file)
 #include "priv.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
 gt215_pmu = {
-       .reset = gt215_pmu_reset,
        .code.data = gt215_pmu_code,
        .code.size = sizeof(gt215_pmu_code),
        .data.data = gt215_pmu_data,
index f38c88fae3d6fb44f2347961f6e514953bee7410..73b811ccc2d559bbe88cbf19487035e38592fe13 100644 (file)
@@ -8,8 +8,6 @@ int nvkm_pmu_new_(const struct nvkm_pmu_func *, struct nvkm_device *,
                  int index, struct nvkm_pmu **);
 
 struct nvkm_pmu_func {
-       void (*reset)(struct nvkm_pmu *);
-
        struct {
                u32 *data;
                u32  size;