drm/nouveau/core: remove pmc_enable argument from subdev ctor
authorBen Skeggs <bskeggs@redhat.com>
Fri, 8 Apr 2016 07:24:40 +0000 (17:24 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 20 May 2016 04:43:04 +0000 (14:43 +1000)
These are now specified directly in the MC subdev.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
74 files changed:
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
drivers/gpu/drm/nouveau/include/nvkm/engine/xtensa.h
drivers/gpu/drm/nouveau/nvkm/core/engine.c
drivers/gpu/drm/nouveau/nvkm/core/subdev.c
drivers/gpu/drm/nouveau/nvkm/engine/bsp/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
drivers/gpu/drm/nouveau/nvkm/engine/dma/base.c
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/mspdec/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/msppp/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/msppp/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/msppp/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/mcp89.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/sec/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/base.c
drivers/gpu/drm/nouveau/nvkm/engine/vp/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/fuse/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf117.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gm200.c
drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c

index 48bf128456a16ba90e036e246902bbba3e6db36c..9ebfd8782366005ec54ea2536848b1cf4650f14f 100644 (file)
@@ -38,11 +38,9 @@ struct nvkm_engine_func {
 };
 
 int nvkm_engine_ctor(const struct nvkm_engine_func *, struct nvkm_device *,
-                    int index, u32 pmc_enable, bool enable,
-                    struct nvkm_engine *);
+                    int index, bool enable, struct nvkm_engine *);
 int nvkm_engine_new_(const struct nvkm_engine_func *, struct nvkm_device *,
-                    int index, u32 pmc_enable, bool enable,
-                    struct nvkm_engine **);
+                    int index, bool enable, struct nvkm_engine **);
 struct nvkm_engine *nvkm_engine_ref(struct nvkm_engine *);
 void nvkm_engine_unref(struct nvkm_engine **);
 void nvkm_engine_tile(struct nvkm_engine *, int region);
index 3b5dc9c6306916f608882997d1fefd8dc50659cc..57adefa8b08ef44337c0e62335d448a4799c926f 100644 (file)
@@ -6,7 +6,6 @@ struct nvkm_subdev {
        const struct nvkm_subdev_func *func;
        struct nvkm_device *device;
        enum nvkm_devidx index;
-       u32 pmc_enable;
        struct mutex mutex;
        u32 debug;
 
@@ -24,7 +23,7 @@ struct nvkm_subdev_func {
 
 extern const char *nvkm_subdev_name[NVKM_SUBDEV_NR];
 void nvkm_subdev_ctor(const struct nvkm_subdev_func *, struct nvkm_device *,
-                     int index, u32 pmc_enable, struct nvkm_subdev *);
+                     int index, struct nvkm_subdev *);
 void nvkm_subdev_del(struct nvkm_subdev **);
 int  nvkm_subdev_preinit(struct nvkm_subdev *);
 int  nvkm_subdev_init(struct nvkm_subdev *);
index 81c0bc66a9f8394b7c4f967769bcec503827f241..e6baf039c269dfb36c128ae0f60c5a70afc16be9 100644 (file)
@@ -40,7 +40,6 @@ struct nvkm_falcon_func {
                u32 *data;
                u32  size;
        } data;
-       u32 pmc_enable;
        void (*init)(struct nvkm_falcon *);
        void (*intr)(struct nvkm_falcon *, struct nvkm_fifo_chan *);
        struct nvkm_sclass sclass[];
index 3128d21a5d1a6409acbbbbdfd16b09551055bfdf..b1fcc416732f9366b4facb092615fc0839cfe0b7 100644 (file)
@@ -15,7 +15,6 @@ int nvkm_xtensa_new_(const struct nvkm_xtensa_func *, struct nvkm_device *,
                     int index, bool enable, u32 addr, struct nvkm_engine **);
 
 struct nvkm_xtensa_func {
-       u32 pmc_enable;
        u32 fifo_val;
        u32 unkd28;
        struct nvkm_sclass sclass[];
index 8a7bae7bd995cda66479effd8f30e0adf90812f9..ee8e5831fe374ddef75dd60e2bc597e4c176e8c3 100644 (file)
@@ -137,11 +137,10 @@ nvkm_engine_func = {
 
 int
 nvkm_engine_ctor(const struct nvkm_engine_func *func,
-                struct nvkm_device *device, int index, u32 pmc_enable,
-                bool enable, struct nvkm_engine *engine)
+                struct nvkm_device *device, int index, bool enable,
+                struct nvkm_engine *engine)
 {
-       nvkm_subdev_ctor(&nvkm_engine_func, device, index,
-                        pmc_enable, &engine->subdev);
+       nvkm_subdev_ctor(&nvkm_engine_func, device, index, &engine->subdev);
        engine->func = func;
 
        if (!nvkm_boolopt(device->cfgopt, nvkm_subdev_name[index], enable)) {
@@ -155,11 +154,10 @@ nvkm_engine_ctor(const struct nvkm_engine_func *func,
 
 int
 nvkm_engine_new_(const struct nvkm_engine_func *func,
-                struct nvkm_device *device, int index, u32 pmc_enable,
-                bool enable, struct nvkm_engine **pengine)
+                struct nvkm_device *device, int index, bool enable,
+                struct nvkm_engine **pengine)
 {
        if (!(*pengine = kzalloc(sizeof(**pengine), GFP_KERNEL)))
                return -ENOMEM;
-       return nvkm_engine_ctor(func, device, index, pmc_enable,
-                               enable, *pengine);
+       return nvkm_engine_ctor(func, device, index, enable, *pengine);
 }
index 68cf6062b96d4fe2230ccd154caa271a63f9fbf4..b18557858f19e25c8fbbad4b34d5ec58cd4a8d17 100644 (file)
@@ -190,14 +190,13 @@ nvkm_subdev_del(struct nvkm_subdev **psubdev)
 
 void
 nvkm_subdev_ctor(const struct nvkm_subdev_func *func,
-                struct nvkm_device *device, int index, u32 pmc_enable,
+                struct nvkm_device *device, int index,
                 struct nvkm_subdev *subdev)
 {
        const char *name = nvkm_subdev_name[index];
        subdev->func = func;
        subdev->device = device;
        subdev->index = index;
-       subdev->pmc_enable = pmc_enable;
 
        __mutex_init(&subdev->mutex, name, &nvkm_subdev_lock_class[index]);
        subdev->debug = nvkm_dbgopt(device->dbgopt, name);
index 3ef01071f073ddd0d1ecb49915cd0b3bca7f188e..8e2e24a7477458d0ad2361885e79fca4f936068a 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_xtensa_func
 g84_bsp = {
-       .pmc_enable = 0x04008000,
        .fifo_val = 0x1111,
        .unkd28 = 0x90044,
        .sclass = {
index 92a9f35df1a65514d60a47a279d7917f26f03b16..ad9f855c9a407223c63b505e151e34b6953a1f16 100644 (file)
@@ -40,7 +40,6 @@ gf100_ce0 = {
        .code.size = sizeof(gf100_ce_code),
        .data.data = gf100_ce_data,
        .data.size = sizeof(gf100_ce_data),
-       .pmc_enable = 0x00000040,
        .init = gf100_ce_init,
        .intr = gt215_ce_intr,
        .sclass = {
@@ -55,7 +54,6 @@ gf100_ce1 = {
        .code.size = sizeof(gf100_ce_code),
        .data.data = gf100_ce_data,
        .data.size = sizeof(gf100_ce_data),
-       .pmc_enable = 0x00000080,
        .init = gf100_ce_init,
        .intr = gt215_ce_intr,
        .sclass = {
index e2b944dce9b8a829026b671eb15fa06555986f4b..9e0b53a10f773bf648f046cc8e151427a88afc94 100644 (file)
@@ -97,17 +97,5 @@ int
 gk104_ce_new(struct nvkm_device *device, int index,
             struct nvkm_engine **pengine)
 {
-       if (index == NVKM_ENGINE_CE0) {
-               return nvkm_engine_new_(&gk104_ce, device, index,
-                                       0x00000040, true, pengine);
-       } else
-       if (index == NVKM_ENGINE_CE1) {
-               return nvkm_engine_new_(&gk104_ce, device, index,
-                                       0x00000080, true, pengine);
-       } else
-       if (index == NVKM_ENGINE_CE2) {
-               return nvkm_engine_new_(&gk104_ce, device, index,
-                                       0x00200000, true, pengine);
-       }
-       return -ENODEV;
+       return nvkm_engine_new_(&gk104_ce, device, index, true, pengine);
 }
index 4c2f42919c1f31607510630350b18a1a638a20b6..c0df7daa85e274760e13cde68d4530fce514f7cf 100644 (file)
@@ -39,17 +39,5 @@ int
 gm107_ce_new(struct nvkm_device *device, int index,
             struct nvkm_engine **pengine)
 {
-       if (index == NVKM_ENGINE_CE0) {
-               return nvkm_engine_new_(&gm107_ce, device, index,
-                                       0x00000040, true, pengine);
-       } else
-       if (index == NVKM_ENGINE_CE1) {
-               return nvkm_engine_new_(&gm107_ce, device, index,
-                                       0x00000080, true, pengine);
-       } else
-       if (index == NVKM_ENGINE_CE2) {
-               return nvkm_engine_new_(&gm107_ce, device, index,
-                                       0x00200000, true, pengine);
-       }
-       return -ENODEV;
+       return nvkm_engine_new_(&gm107_ce, device, index, true, pengine);
 }
index 13f07b32cd9c4bdd076903be08da69278f41b2b7..c6fa8b20737e690cdc6d5d9e94bdd23b91b1129e 100644 (file)
@@ -38,17 +38,5 @@ int
 gm200_ce_new(struct nvkm_device *device, int index,
             struct nvkm_engine **pengine)
 {
-       if (index == NVKM_ENGINE_CE0) {
-               return nvkm_engine_new_(&gm200_ce, device, index,
-                                       0x00000040, true, pengine);
-       } else
-       if (index == NVKM_ENGINE_CE1) {
-               return nvkm_engine_new_(&gm200_ce, device, index,
-                                       0x00000080, true, pengine);
-       } else
-       if (index == NVKM_ENGINE_CE2) {
-               return nvkm_engine_new_(&gm200_ce, device, index,
-                                       0x00200000, true, pengine);
-       }
-       return -ENODEV;
+       return nvkm_engine_new_(&gm200_ce, device, index, true, pengine);
 }
index 402dcbcc2192fda50057f9097585d2bf10fa78d1..63ac51a54fd3c981d105e9b1cdb0525ac7016be9 100644 (file)
@@ -67,7 +67,6 @@ gt215_ce = {
        .code.size = sizeof(gt215_ce_code),
        .data.data = gt215_ce_data,
        .data.size = sizeof(gt215_ce_data),
-       .pmc_enable = 0x00802000,
        .intr = gt215_ce_intr,
        .sclass = {
                { -1, -1, GT212_DMA },
index bfd01625ec7f8ccd8d82366cd6400dd1cea9e520..68ffb520531e0f784b485e663f3f637b99528253 100644 (file)
@@ -130,6 +130,5 @@ int
 g84_cipher_new(struct nvkm_device *device, int index,
               struct nvkm_engine **pengine)
 {
-       return nvkm_engine_new_(&g84_cipher, device, index,
-                               0x00004000, true, pengine);
+       return nvkm_engine_new_(&g84_cipher, device, index, true, pengine);
 }
index 785fa76d0fbf3e8d7a9dbcc0ae790696c6a72e5b..1efe91b1e22b164e02c55acf0d3db5ef2f9c29fa 100644 (file)
@@ -298,8 +298,7 @@ nvkm_disp_ctor(const struct nvkm_disp_func *func, struct nvkm_device *device,
        disp->func = func;
        disp->head.nr = heads;
 
-       ret = nvkm_engine_ctor(&nvkm_disp, device, index, 0,
-                              true, &disp->engine);
+       ret = nvkm_engine_ctor(&nvkm_disp, device, index, true, &disp->engine);
        if (ret)
                return ret;
 
index 9769fc0d5351bf65430f7f938b8f7b11fe7ebbf7..f11ebdd16c77f0a8516d01336bef6837f660eea6 100644 (file)
@@ -152,6 +152,5 @@ nvkm_dma_new_(const struct nvkm_dma_func *func, struct nvkm_device *device,
                return -ENOMEM;
        dma->func = func;
 
-       return nvkm_engine_ctor(&nvkm_dma, device, index,
-                               0, true, &dma->engine);
+       return nvkm_engine_ctor(&nvkm_dma, device, index, true, &dma->engine);
 }
index 74000602fbb127463c1a5d0b269adb305fc84f90..2e7b4e2105efc4983a63eceb3376aa685fd5cf07 100644 (file)
@@ -348,6 +348,6 @@ nvkm_falcon_new_(const struct nvkm_falcon_func *func,
        falcon->data.size = func->data.size;
        *pengine = &falcon->engine;
 
-       return nvkm_engine_ctor(&nvkm_falcon, device, index, func->pmc_enable,
+       return nvkm_engine_ctor(&nvkm_falcon, device, index,
                                enable, &falcon->engine);
 }
index cfc7d5725a61faa25bd268e4aee7f18803fceaa7..fce308f013426911199a112e38f9ef61c4cac333 100644 (file)
@@ -261,8 +261,7 @@ nvkm_fifo_ctor(const struct nvkm_fifo_func *func, struct nvkm_device *device,
                fifo->nr = nr;
        bitmap_clear(fifo->mask, 0, fifo->nr);
 
-       ret = nvkm_engine_ctor(&nvkm_fifo, device, index, 0x00000100,
-                              true, &fifo->engine);
+       ret = nvkm_engine_ctor(&nvkm_fifo, device, index, true, &fifo->engine);
        if (ret)
                return ret;
 
index 090765ff070debcb2f33e9361f6dc27c20576caa..467065d1b4e6464d202bbe996d33d4cc6a56b52f 100644 (file)
@@ -128,9 +128,8 @@ nvkm_gr = {
 
 int
 nvkm_gr_ctor(const struct nvkm_gr_func *func, struct nvkm_device *device,
-            int index, u32 pmc_enable, bool enable, struct nvkm_gr *gr)
+            int index, bool enable, struct nvkm_gr *gr)
 {
        gr->func = func;
-       return nvkm_engine_ctor(&nvkm_gr, device, index, pmc_enable,
-                               enable, &gr->engine);
+       return nvkm_engine_ctor(&nvkm_gr, device, index, enable, &gr->engine);
 }
index b2de290da16feedf3834f31a32879ab315a586b5..8206aecefc7dccf41b1e5db43a8e0098b09871a2 100644 (file)
@@ -1776,7 +1776,7 @@ gf100_gr_ctor(const struct gf100_gr_func *func, struct nvkm_device *device,
        gr->firmware = nvkm_boolopt(device->cfgopt, "NvGrUseFW",
                                    func->fecs.ucode == NULL);
 
-       ret = nvkm_gr_ctor(&gf100_gr_, device, index, 0x08001000,
+       ret = nvkm_gr_ctor(&gf100_gr_, device, index,
                           gr->firmware || func->fecs.ucode != NULL,
                           &gr->base);
        if (ret)
index 85c5b7fea5f5e177c347632aae8fb978f18d16c5..9c2e985dc079e9b142add0d32646ef554fc0ed85 100644 (file)
@@ -1422,6 +1422,5 @@ nv04_gr_new(struct nvkm_device *device, int index, struct nvkm_gr **pgr)
        spin_lock_init(&gr->lock);
        *pgr = &gr->base;
 
-       return nvkm_gr_ctor(&nv04_gr, device, index, 0x00001000,
-                           true, &gr->base);
+       return nvkm_gr_ctor(&nv04_gr, device, index, true, &gr->base);
 }
index 4542867fa9e627736b12693456bba75d59bdb41b..4ebbfbdd8240455c2a17fa58ac650f668897ded6 100644 (file)
@@ -1182,7 +1182,7 @@ nv10_gr_new_(const struct nvkm_gr_func *func, struct nvkm_device *device,
        spin_lock_init(&gr->lock);
        *pgr = &gr->base;
 
-       return nvkm_gr_ctor(func, device, index, 0x00001000, true, &gr->base);
+       return nvkm_gr_ctor(func, device, index, true, &gr->base);
 }
 
 static const struct nvkm_gr_func
index 5caef65d3c6ebd1dc86b7bd2db6bbd3f79e88857..d1dc92999dc00f281f5c38507403a3ae0ff8e801 100644 (file)
@@ -337,7 +337,7 @@ nv20_gr_new_(const struct nvkm_gr_func *func, struct nvkm_device *device,
                return -ENOMEM;
        *pgr = &gr->base;
 
-       return nvkm_gr_ctor(func, device, index, 0x00001000, true, &gr->base);
+       return nvkm_gr_ctor(func, device, index, true, &gr->base);
 }
 
 static const struct nvkm_gr_func
index 05a895496fc66f6f96efd64cbdbe822e4baaf1cc..5f1ad8344ea9d2c4b9f79c6eda0f11db1a5b5571 100644 (file)
@@ -438,7 +438,7 @@ nv40_gr_new_(const struct nvkm_gr_func *func, struct nvkm_device *device,
        *pgr = &gr->base;
        INIT_LIST_HEAD(&gr->chan);
 
-       return nvkm_gr_ctor(func, device, index, 0x00001000, true, &gr->base);
+       return nvkm_gr_ctor(func, device, index, true, &gr->base);
 }
 
 static const struct nvkm_gr_func
index b19b912d57877bfb9747f3f54a53143522f83e23..fca67de43f2b6f7d8710f7382d52bb5c6ba0b029 100644 (file)
@@ -768,7 +768,7 @@ nv50_gr_new_(const struct nvkm_gr_func *func, struct nvkm_device *device,
        spin_lock_init(&gr->lock);
        *pgr = &gr->base;
 
-       return nvkm_gr_ctor(func, device, index, 0x00201000, true, &gr->base);
+       return nvkm_gr_ctor(func, device, index, true, &gr->base);
 }
 
 static const struct nvkm_gr_func
index a234590be88e83b309e40428c3c47470472074de..d8adcdf6985aa65e3782ffbf98ec200201a4d17b 100644 (file)
@@ -7,8 +7,7 @@ struct nvkm_fb_tile;
 struct nvkm_fifo_chan;
 
 int nvkm_gr_ctor(const struct nvkm_gr_func *, struct nvkm_device *,
-                int index, u32 pmc_enable, bool enable,
-                struct nvkm_gr *);
+                int index, bool enable, struct nvkm_gr *);
 
 bool nv04_gr_idle(struct nvkm_gr *);
 
index 34ff0014a6c1f8c26dce5d96c6307f430c4a5aba..c0e11a071843b22470af3fd82119d3b4c96215e7 100644 (file)
@@ -39,6 +39,5 @@ g84_mpeg = {
 int
 g84_mpeg_new(struct nvkm_device *device, int index, struct nvkm_engine **pmpeg)
 {
-       return nvkm_engine_new_(&g84_mpeg, device, index, 0x00000002,
-                               true, pmpeg);
+       return nvkm_engine_new_(&g84_mpeg, device, index, true, pmpeg);
 }
index d4d8942b13472c26af9fdb392728d6d2f751c244..003ac915eaadad44c5b0ad2c1bbab9d18377596e 100644 (file)
@@ -278,7 +278,7 @@ nv31_mpeg_new_(const struct nv31_mpeg_func *func, struct nvkm_device *device,
        mpeg->func = func;
        *pmpeg = &mpeg->engine;
 
-       return nvkm_engine_ctor(&nv31_mpeg_, device, index, 0x00000002,
+       return nvkm_engine_ctor(&nv31_mpeg_, device, index,
                                true, &mpeg->engine);
 }
 
index d433cfa4a8ab4ca8d098442e231d4a0745eff98c..e536f37e24b0c75fbf7882eccae37c5b1d0aeae8 100644 (file)
@@ -212,6 +212,5 @@ nv44_mpeg_new(struct nvkm_device *device, int index, struct nvkm_engine **pmpeg)
        INIT_LIST_HEAD(&mpeg->chan);
        *pmpeg = &mpeg->engine;
 
-       return nvkm_engine_ctor(&nv44_mpeg, device, index, 0x00000002,
-                               true, &mpeg->engine);
+       return nvkm_engine_ctor(&nv44_mpeg, device, index, true, &mpeg->engine);
 }
index c3a85dffc7822648fec3637e781c4f400e5d4cdf..4e528851e9c00653e0bf5d7a362a3af2b316a634 100644 (file)
@@ -130,6 +130,5 @@ nv50_mpeg = {
 int
 nv50_mpeg_new(struct nvkm_device *device, int index, struct nvkm_engine **pmpeg)
 {
-       return nvkm_engine_new_(&nv50_mpeg, device, index, 0x00400002,
-                               true, pmpeg);
+       return nvkm_engine_new_(&nv50_mpeg, device, index, true, pmpeg);
 }
index 1f1a99e927b2c3a10bb38681a6df5321d0067249..f30cf1dcfb30b999bac4f9f5a864465046de167a 100644 (file)
@@ -35,7 +35,6 @@ g98_mspdec_init(struct nvkm_falcon *mspdec)
 
 static const struct nvkm_falcon_func
 g98_mspdec = {
-       .pmc_enable = 0x01020000,
        .init = g98_mspdec_init,
        .sclass = {
                { -1, -1, G98_MSPDEC },
index 371fd6c3c66306627f184bbfec43919279a581aa..cfe1aa81bd144f503d0ca318e9c5d2279f8ef0f8 100644 (file)
@@ -35,7 +35,6 @@ gf100_mspdec_init(struct nvkm_falcon *mspdec)
 
 static const struct nvkm_falcon_func
 gf100_mspdec = {
-       .pmc_enable = 0x00020000,
        .init = gf100_mspdec_init,
        .sclass = {
                { -1, -1, GF100_MSPDEC },
index de804a15bfd46138189c31b8dc4753286eb721b1..24272b4927bcdf41a46a146a2e1f07bd316668e1 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_falcon_func
 gk104_mspdec = {
-       .pmc_enable = 0x00020000,
        .init = gf100_mspdec_init,
        .sclass = {
                { -1, -1, GK104_MSPDEC },
index 835631713c950f3919e164d073529c41499ae4d8..cf6e59ad6ee296dfab8de7a3e19ab3e3e3db6893 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_falcon_func
 gt215_mspdec = {
-       .pmc_enable = 0x01020000,
        .init = g98_mspdec_init,
        .sclass = {
                { -1, -1, GT212_MSPDEC },
index 73f633ae2ee7edfcefcab18fa20184cd124b48b8..c45dbf79d1f9d1977da44da1306b1dd52846da7b 100644 (file)
@@ -35,7 +35,6 @@ g98_msppp_init(struct nvkm_falcon *msppp)
 
 static const struct nvkm_falcon_func
 g98_msppp = {
-       .pmc_enable = 0x00400002,
        .init = g98_msppp_init,
        .sclass = {
                { -1, -1, G98_MSPPP },
index c42c0c07e2db12c16246dd8b8fa6d297bb11cf3c..803c62ab516e107858f5c396e27c45be4755ce59 100644 (file)
@@ -35,7 +35,6 @@ gf100_msppp_init(struct nvkm_falcon *msppp)
 
 static const struct nvkm_falcon_func
 gf100_msppp = {
-       .pmc_enable = 0x00000002,
        .init = gf100_msppp_init,
        .sclass = {
                { -1, -1, GF100_MSPPP },
index 00e7795f1d512825d79b3190c11fbbcd40697147..49cbf72cee4bd6ac587317be85dd339551f33c20 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_falcon_func
 gt215_msppp = {
-       .pmc_enable = 0x00400002,
        .init = g98_msppp_init,
        .sclass = {
                { -1, -1, GT212_MSPPP },
index 47e2929bfaf02ebb95c1e26d4e7493bfde4b74e6..4a2a9f0494af8aa625903ca5a7531808089ea03f 100644 (file)
@@ -35,7 +35,6 @@ g98_msvld_init(struct nvkm_falcon *msvld)
 
 static const struct nvkm_falcon_func
 g98_msvld = {
-       .pmc_enable = 0x04008000,
        .init = g98_msvld_init,
        .sclass = {
                { -1, -1, G98_MSVLD },
index 1ac581ba9f96fbbb1d30dead263c3449f11469e2..1695e532c081f543fd3b0b7166188737e56804f4 100644 (file)
@@ -35,7 +35,6 @@ gf100_msvld_init(struct nvkm_falcon *msvld)
 
 static const struct nvkm_falcon_func
 gf100_msvld = {
-       .pmc_enable = 0x00008000,
        .init = gf100_msvld_init,
        .sclass = {
                { -1, -1, GF100_MSVLD },
index 4bba16e0f560005fb403c6c716b0736301cbfca8..b640cd63ebe8593f96bbb75503385e2090673c70 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_falcon_func
 gk104_msvld = {
-       .pmc_enable = 0x00008000,
        .init = gf100_msvld_init,
        .sclass = {
                { -1, -1, GK104_MSVLD },
index e17cb5605b2d4822be24543cb0287ccc66d51e8c..201e8ef3519ec0941f2c0dde67733e91aff76d79 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_falcon_func
 gt215_msvld = {
-       .pmc_enable = 0x04008000,
        .init = g98_msvld_init,
        .sclass = {
                { -1, -1, GT212_MSVLD },
index 511800f6a43b89b4b13e33392b5f0bb6325106e1..a0f540ef257b8dbc418cc780f5644f0ca4bfc63e 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_falcon_func
 mcp89_msvld = {
-       .pmc_enable = 0x04008000,
        .init = g98_msvld_init,
        .sclass = {
                { -1, -1, IGT21A_MSVLD },
index f19fabef8d73ce1a64206e3bca70519a53d3a3d9..8616636ad7b407e49f49c981437d7799bc42696b 100644 (file)
@@ -863,5 +863,5 @@ nvkm_pm_ctor(const struct nvkm_pm_func *func, struct nvkm_device *device,
        pm->func = func;
        INIT_LIST_HEAD(&pm->domains);
        INIT_LIST_HEAD(&pm->sources);
-       return nvkm_engine_ctor(&nvkm_pm, device, index, 0, true, &pm->engine);
+       return nvkm_engine_ctor(&nvkm_pm, device, index, true, &pm->engine);
 }
index 995c2c5ec15038f815640f00d52b7fdecc26c63a..6d2a7f0afbb55d8bed5add0641a0f1a6c7cb5f37 100644 (file)
@@ -66,7 +66,6 @@ g98_sec = {
        .code.size = sizeof(g98_sec_code),
        .data.data = g98_sec_data,
        .data.size = sizeof(g98_sec_data),
-       .pmc_enable = 0x00004000,
        .intr = g98_sec_intr,
        .sclass = {
                { -1, -1, G98_SEC },
index 53c1f7e75b54c3fdba248054503d7db929d8450a..7be3198e11de402e413083729cacbda3f51181f7 100644 (file)
@@ -106,5 +106,5 @@ nvkm_sw_new_(const struct nvkm_sw_func *func, struct nvkm_device *device,
        INIT_LIST_HEAD(&sw->chan);
        sw->func = func;
 
-       return nvkm_engine_ctor(&nvkm_sw, device, index, 0, true, &sw->engine);
+       return nvkm_engine_ctor(&nvkm_sw, device, index, true, &sw->engine);
 }
index 4188c77ac927557bd688cda20753b238239dbe64..7a96178786c4ca6a90bccc3bbd6ba86318801c63 100644 (file)
@@ -27,7 +27,6 @@
 
 static const struct nvkm_xtensa_func
 g84_vp = {
-       .pmc_enable = 0x01020000,
        .fifo_val = 0x111,
        .unkd28 = 0x9c544,
        .sclass = {
index a3d4f5bcec7a450e522c6cdcf17d0d4901a082b9..06bdb67a020586c45ef2b6c9f2c4f6ece7d8231a 100644 (file)
@@ -187,6 +187,6 @@ nvkm_xtensa_new_(const struct nvkm_xtensa_func *func,
        xtensa->addr = addr;
        *pengine = &xtensa->engine;
 
-       return nvkm_engine_ctor(&nvkm_xtensa, device, index, func->pmc_enable,
+       return nvkm_engine_ctor(&nvkm_xtensa, device, index,
                                enable, &xtensa->engine);
 }
index a9433ad45b1e6b60ae16a14902f500940ffdfe41..c561d148cebcd7909a047cec7585265588934d9f 100644 (file)
@@ -77,7 +77,7 @@ void
 nvkm_bar_ctor(const struct nvkm_bar_func *func, struct nvkm_device *device,
              int index, struct nvkm_bar *bar)
 {
-       nvkm_subdev_ctor(&nvkm_bar, device, index, 0, &bar->subdev);
+       nvkm_subdev_ctor(&nvkm_bar, device, index, &bar->subdev);
        bar->func = func;
        spin_lock_init(&bar->lock);
 }
index 79536897efaadc73e5508b39b28e5f1776bfe92a..e15b9627b07e12cacca0bb671813d9d9e3b58628 100644 (file)
@@ -105,7 +105,7 @@ nvkm_bios_new(struct nvkm_device *device, int index, struct nvkm_bios **pbios)
 
        if (!(bios = *pbios = kzalloc(sizeof(*bios), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&nvkm_bios, device, index, 0, &bios->subdev);
+       nvkm_subdev_ctor(&nvkm_bios, device, index, &bios->subdev);
 
        ret = nvbios_shadow(bios);
        if (ret)
index dc5a10f18bdb54fb049b118bb9ff607283d97c69..52ad73bce5febd0a1d8b166ca9422fa4e59e7c3f 100644 (file)
@@ -58,7 +58,7 @@ nvkm_bus_new_(const struct nvkm_bus_func *func, struct nvkm_device *device,
        struct nvkm_bus *bus;
        if (!(bus = *pbus = kzalloc(sizeof(*bus), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&nvkm_bus, device, index, 0, &bus->subdev);
+       nvkm_subdev_ctor(&nvkm_bus, device, index, &bus->subdev);
        bus->func = func;
        return 0;
 }
index 889cce2eb7277aa2d608ca99a6041ff7a43fc7b9..7102c25320fc273c64da5534e9339c7ff27cabce 100644 (file)
@@ -564,7 +564,7 @@ nvkm_clk_ctor(const struct nvkm_clk_func *func, struct nvkm_device *device,
        int ret, idx, arglen;
        const char *mode;
 
-       nvkm_subdev_ctor(&nvkm_clk, device, index, 0, &clk->subdev);
+       nvkm_subdev_ctor(&nvkm_clk, device, index, &clk->subdev);
        clk->func = func;
        INIT_LIST_HEAD(&clk->states);
        clk->domains = func->domains;
index 9edd53773a19b9e920eec0448a70baac3040dc57..4756019ddf3fba74bf69795a7fd567e38241d813 100644 (file)
@@ -130,7 +130,7 @@ nvkm_devinit_ctor(const struct nvkm_devinit_func *func,
                  struct nvkm_device *device, int index,
                  struct nvkm_devinit *init)
 {
-       nvkm_subdev_ctor(&nvkm_devinit, device, index, 0, &init->subdev);
+       nvkm_subdev_ctor(&nvkm_devinit, device, index, &init->subdev);
        init->func = func;
        init->force_post = nvkm_boolopt(device->cfgopt, "NvForcePost", false);
 }
index a719b9becb7300c86a91d8e0b3c0d5ba81f2ef77..9ee5872585575dbcb0304f82df4e5619cd487d71 100644 (file)
@@ -156,7 +156,7 @@ void
 nvkm_fb_ctor(const struct nvkm_fb_func *func, struct nvkm_device *device,
             int index, struct nvkm_fb *fb)
 {
-       nvkm_subdev_ctor(&nvkm_fb, device, index, 0, &fb->subdev);
+       nvkm_subdev_ctor(&nvkm_fb, device, index, &fb->subdev);
        fb->func = func;
        fb->tile.regions = fb->func->tile.regions;
 }
index f4144979a79c0aa86b202a1258a1673962d182d1..1c3c18ea8cedfcc8fe1699290e35eaea45252483 100644 (file)
@@ -47,7 +47,7 @@ nvkm_fuse_new_(const struct nvkm_fuse_func *func, struct nvkm_device *device,
        struct nvkm_fuse *fuse;
        if (!(fuse = *pfuse = kzalloc(sizeof(*fuse), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&nvkm_fuse, device, index, 0, &fuse->subdev);
+       nvkm_subdev_ctor(&nvkm_fuse, device, index, &fuse->subdev);
        fuse->func = func;
        spin_lock_init(&fuse->lock);
        return 0;
index d45ec99f0e3855f3e65c7d6002f71caad8190a99..77c649723ad7602055752445863ba50653c392c7 100644 (file)
@@ -216,7 +216,7 @@ nvkm_gpio_new_(const struct nvkm_gpio_func *func, struct nvkm_device *device,
        if (!(gpio = *pgpio = kzalloc(sizeof(*gpio), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_gpio, device, index, 0, &gpio->subdev);
+       nvkm_subdev_ctor(&nvkm_gpio, device, index, &gpio->subdev);
        gpio->func = func;
 
        return nvkm_event_init(&nvkm_gpio_intr_func, 2, func->lines,
index 243a71ff0a0d9d9ebee40bf2aa3653eea41a7d6a..4f197b15acf6138c415185de24cbb3eb04887295 100644 (file)
@@ -254,7 +254,7 @@ nvkm_i2c_new_(const struct nvkm_i2c_func *func, struct nvkm_device *device,
        if (!(i2c = *pi2c = kzalloc(sizeof(*i2c), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_i2c, device, index, 0, &i2c->subdev);
+       nvkm_subdev_ctor(&nvkm_i2c, device, index, &i2c->subdev);
        i2c->func = func;
        INIT_LIST_HEAD(&i2c->pad);
        INIT_LIST_HEAD(&i2c->bus);
index 72d6330d243d2c5451656444a7e9f8226589183c..2c6b374f14200ca28f32af2eded5bf36422357e3 100644 (file)
@@ -117,6 +117,6 @@ gf100_ibus_new(struct nvkm_device *device, int index,
        struct nvkm_subdev *ibus;
        if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&gf100_ibus, device, index, 0, ibus);
+       nvkm_subdev_ctor(&gf100_ibus, device, index, ibus);
        return 0;
 }
index f69f263c5906f0e716f9a129615ff662bf58b093..3905a80da811997566728bafd39a57050c2881e9 100644 (file)
@@ -46,6 +46,6 @@ gf117_ibus_new(struct nvkm_device *device, int index,
        struct nvkm_subdev *ibus;
        if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&gf117_ibus, device, index, 0, ibus);
+       nvkm_subdev_ctor(&gf117_ibus, device, index, ibus);
        return 0;
 }
index b5cee3f89aaaed1968ec2366f1a949153813f29d..c673853f3213c999b20b942ea9a88da1ce24bf56 100644 (file)
@@ -120,6 +120,6 @@ gk104_ibus_new(struct nvkm_device *device, int index,
        struct nvkm_subdev *ibus;
        if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&gk104_ibus, device, index, 0, ibus);
+       nvkm_subdev_ctor(&gk104_ibus, device, index, ibus);
        return 0;
 }
index 3484079e885a836a9b65af81fcf1353bcf805f36..b7159b338fac06af9db9c83ca82b189d718d35b0 100644 (file)
@@ -84,6 +84,6 @@ gk20a_ibus_new(struct nvkm_device *device, int index,
        struct nvkm_subdev *ibus;
        if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&gk20a_ibus, device, index, 0, ibus);
+       nvkm_subdev_ctor(&gk20a_ibus, device, index, ibus);
        return 0;
 }
index ef0b7f3b1128a92db74de0e54ef84b41189237e5..c63328152bfa669d17d642ab1f7a55045198326b 100644 (file)
@@ -35,6 +35,6 @@ gm200_ibus_new(struct nvkm_device *device, int index,
        struct nvkm_subdev *ibus;
        if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&gm200_ibus, device, index, 0, ibus);
+       nvkm_subdev_ctor(&gm200_ibus, device, index, ibus);
        return 0;
 }
index 55f36f519f65775e2970ad65fa5e98b150ddec1e..323c79abe46855f45ec5e91a722324f93d183a8a 100644 (file)
@@ -337,7 +337,7 @@ void
 nvkm_iccsense_ctor(struct nvkm_device *device, int index,
                   struct nvkm_iccsense *iccsense)
 {
-       nvkm_subdev_ctor(&iccsense_func, device, index, 0, &iccsense->subdev);
+       nvkm_subdev_ctor(&iccsense_func, device, index, &iccsense->subdev);
 }
 
 int
index 1d7dd38292b375bd73ec35ff4e844cd2ae1defe7..8ed8f65ff664f5b0014f7326923dd079a3188f0e 100644 (file)
@@ -311,7 +311,7 @@ nvkm_instmem_ctor(const struct nvkm_instmem_func *func,
                  struct nvkm_device *device, int index,
                  struct nvkm_instmem *imem)
 {
-       nvkm_subdev_ctor(&nvkm_instmem, device, index, 0, &imem->subdev);
+       nvkm_subdev_ctor(&nvkm_instmem, device, index, &imem->subdev);
        imem->func = func;
        spin_lock_init(&imem->lock);
        INIT_LIST_HEAD(&imem->list);
index 85b1464c01942013f22055be345d751636bc68cb..39c2a38e54f74e6e2a4af834feca795823a21408 100644 (file)
@@ -138,7 +138,7 @@ nvkm_ltc_new_(const struct nvkm_ltc_func *func, struct nvkm_device *device,
        if (!(ltc = *pltc = kzalloc(sizeof(*ltc), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_ltc, device, index, 0, &ltc->subdev);
+       nvkm_subdev_ctor(&nvkm_ltc, device, index, &ltc->subdev);
        ltc->func = func;
        ltc->zbc_min = 1; /* reserve 0 for disabled */
        ltc->zbc_max = min(func->zbc, NVKM_LTC_MAX_ZBC_CNT) - 1;
index 184325cdc138cf36a9d8d444df5c901b133616cd..350a8caa84c8dbd9b565cb2ea4b71a2b428bb116 100644 (file)
@@ -103,11 +103,6 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx)
                }
        }
 
-       if (!pmc_enable) {
-               struct nvkm_subdev *subdev = nvkm_device_subdev(device, devidx);
-               pmc_enable = subdev->pmc_enable;
-       }
-
        if (pmc_enable) {
                nvkm_mask(device, 0x000200, pmc_enable, 0x00000000);
                nvkm_mask(device, 0x000200, pmc_enable, pmc_enable);
@@ -162,7 +157,7 @@ nvkm_mc_new_(const struct nvkm_mc_func *func, struct nvkm_device *device,
        if (!(mc = *pmc = kzalloc(sizeof(*mc), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_mc, device, index, 0, &mc->subdev);
+       nvkm_subdev_ctor(&nvkm_mc, device, index, &mc->subdev);
        mc->func = func;
        return 0;
 }
index e04a2296ecd0c0a67522c08c423589369fcdb58f..5df9669ea39c1705a631685a2530bc20bfd5a458 100644 (file)
@@ -524,7 +524,7 @@ void
 nvkm_mmu_ctor(const struct nvkm_mmu_func *func, struct nvkm_device *device,
              int index, struct nvkm_mmu *mmu)
 {
-       nvkm_subdev_ctor(&nvkm_mmu, device, index, 0, &mmu->subdev);
+       nvkm_subdev_ctor(&nvkm_mmu, device, index, &mmu->subdev);
        mmu->func = func;
        mmu->limit = func->limit;
        mmu->dma_bits = func->dma_bits;
index 9700a7625012d7cf9724f746e77dbc87b5bd52e1..21b65ee254e4d5a9d07f95d1bf87804ef4b3ad7b 100644 (file)
@@ -241,7 +241,7 @@ nvkm_mxm_new_(struct nvkm_device *device, int index, struct nvkm_mxm **pmxm)
        if (!(mxm = *pmxm = kzalloc(sizeof(*mxm), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_mxm, device, index, 0, &mxm->subdev);
+       nvkm_subdev_ctor(&nvkm_mxm, device, index, &mxm->subdev);
 
        data = mxm_table(bios, &ver, &len);
        if (!data || !(ver = nvbios_rd08(bios, data))) {
index 65057c8310a295de4596e46c65ded680583de219..6b0328bd7eede2ee2d43d55152f0b6022218f76b 100644 (file)
@@ -168,7 +168,7 @@ nvkm_pci_new_(const struct nvkm_pci_func *func, struct nvkm_device *device,
 
        if (!(pci = *ppci = kzalloc(sizeof(**ppci), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&nvkm_pci_func, device, index, 0, &pci->subdev);
+       nvkm_subdev_ctor(&nvkm_pci_func, device, index, &pci->subdev);
        pci->func = func;
        pci->pdev = device->func->pci(device)->pdev;
        pci->irq = -1;
index 6e6d2ef598c8c9f8af43234704accfaedd6a7ebb..8dd164d13043ffe663f6460d8daf26d4be37eda3 100644 (file)
@@ -274,7 +274,7 @@ nvkm_pmu_new_(const struct nvkm_pmu_func *func, struct nvkm_device *device,
        struct nvkm_pmu *pmu;
        if (!(pmu = *ppmu = kzalloc(sizeof(*pmu), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&nvkm_pmu, device, index, 0, &pmu->subdev);
+       nvkm_subdev_ctor(&nvkm_pmu, device, index, &pmu->subdev);
        pmu->func = func;
        INIT_WORK(&pmu->recv.work, nvkm_pmu_recv);
        init_waitqueue_head(&pmu->recv.wait);
index 6689d0290a7e2bf8d7685b880253aa1b34964a5d..f996d90c9f0dc260821d6208c36c91ea7d7177de 100644 (file)
@@ -220,7 +220,7 @@ gk20a_pmu_new(struct nvkm_device *device, int index, struct nvkm_pmu **ppmu)
        pmu->base.func = &func;
        *ppmu = &pmu->base;
 
-       nvkm_subdev_ctor(&gk20a_pmu, device, index, 0, &pmu->base.subdev);
+       nvkm_subdev_ctor(&gk20a_pmu, device, index, &pmu->base.subdev);
        pmu->data = &gk20a_dvfs_data;
        nvkm_alarm_init(&pmu->alarm, gk20a_pmu_dvfs_work);
        return 0;
index 520facf9bc0737d3622948e8cc727c06f7d27cfc..213fdba6cfa0c8813cdf7276ed3c9dc72e2c40d6 100644 (file)
@@ -264,7 +264,7 @@ nvkm_secboot_ctor(const struct nvkm_secboot_func *func,
 {
        unsigned long fid;
 
-       nvkm_subdev_ctor(&nvkm_secboot, device, index, 0, &sb->subdev);
+       nvkm_subdev_ctor(&nvkm_secboot, device, index, &sb->subdev);
        sb->func = func;
 
        /* setup the performing falcon's base address and masks */
index 949dc6101a58b3293355605b45caa9c546b109b3..8894fee30cbc66e5170d9b4c616ef89c7aa22c80 100644 (file)
@@ -366,7 +366,7 @@ nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device,
        if (!(therm = *ptherm = kzalloc(sizeof(*therm), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_therm, device, index, 0, &therm->subdev);
+       nvkm_subdev_ctor(&nvkm_therm, device, index, &therm->subdev);
        therm->func = func;
 
        nvkm_alarm_init(&therm->alarm, nvkm_therm_alarm);
index d4dae1f12d622b03cb2af61d2dcb966fed28f7fb..07dc82bfe346029aab3827f8d435769b433d1ced 100644 (file)
@@ -143,7 +143,7 @@ nvkm_timer_new_(const struct nvkm_timer_func *func, struct nvkm_device *device,
        if (!(tmr = *ptmr = kzalloc(sizeof(*tmr), GFP_KERNEL)))
                return -ENOMEM;
 
-       nvkm_subdev_ctor(&nvkm_timer, device, index, 0, &tmr->subdev);
+       nvkm_subdev_ctor(&nvkm_timer, device, index, &tmr->subdev);
        tmr->func = func;
        INIT_LIST_HEAD(&tmr->alarms);
        spin_lock_init(&tmr->lock);
index d8e9bfbe9fec7e9bc7ea18d323b22a1e11ca80e0..a1b264664aad9cb2e4785a873cb984b647c27c50 100644 (file)
@@ -141,7 +141,7 @@ nvkm_top_new_(const struct nvkm_top_func *func, struct nvkm_device *device,
        struct nvkm_top *top;
        if (!(top = *ptop = kzalloc(sizeof(*top), GFP_KERNEL)))
                return -ENOMEM;
-       nvkm_subdev_ctor(&nvkm_top, device, index, 0, &top->subdev);
+       nvkm_subdev_ctor(&nvkm_top, device, index, &top->subdev);
        top->func = func;
        INIT_LIST_HEAD(&top->device);
        return 0;
index 50b5649ad1a47ee43b7c39778946a9ffdc40d872..6b2d7531a7ff1beff1ee943745a0d5328e108940 100644 (file)
@@ -177,7 +177,7 @@ nvkm_volt_ctor(const struct nvkm_volt_func *func, struct nvkm_device *device,
        struct nvkm_bios *bios = device->bios;
        int i;
 
-       nvkm_subdev_ctor(&nvkm_volt, device, index, 0, &volt->subdev);
+       nvkm_subdev_ctor(&nvkm_volt, device, index, &volt->subdev);
        volt->func = func;
 
        /* Assuming the non-bios device should build the voltage table later */