diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-11-27 09:46:56 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-01-07 13:37:36 +1000 |
commit | 61b365a505d625734be9ac54066fe4700672abc9 (patch) | |
tree | e2c56d6757a32426b79e37869bf553551a096738 /drivers/gpu/drm/nouveau/core/core/subdev.c | |
parent | drm/nv50/disp: min/max are reversed in nv50_crtc_gamma_set() (diff) | |
download | linux-dev-61b365a505d625734be9ac54066fe4700672abc9.tar.xz linux-dev-61b365a505d625734be9ac54066fe4700672abc9.zip |
drm/nouveau: populate master subdev pointer only when fully constructed
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/core/subdev.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/core/subdev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/core/core/subdev.c b/drivers/gpu/drm/nouveau/core/core/subdev.c index 48f06378d3f9..2ea5568b6cf5 100644 --- a/drivers/gpu/drm/nouveau/core/core/subdev.c +++ b/drivers/gpu/drm/nouveau/core/core/subdev.c @@ -104,11 +104,8 @@ nouveau_subdev_create_(struct nouveau_object *parent, if (parent) { struct nouveau_device *device = nv_device(parent); - int subidx = nv_hclass(subdev) & 0xff; - subdev->debug = nouveau_dbgopt(device->dbgopt, subname); subdev->mmio = nv_subdev(device)->mmio; - device->subdev[subidx] = *pobject; } return 0; |