drm/nouveau/pmu: add nvkm_pmu_ctor() function
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 13 Dec 2016 08:11:21 +0000 (17:11 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 05:14:30 +0000 (15:14 +1000)
commite72da6e04f739253b175cd87aab47337c4646a66
tree4274ba8cca8b5e7e7cb880bb733a02ec35a4833b
parent31214108ad08766075bf111df90c1f26520b0159
drm/nouveau/pmu: add nvkm_pmu_ctor() function

Add a PMU constructor so implementations that extend the nvkm_pmu
structure can have all base members properly initialized.

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