Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371603
b: refs/heads/master
c: 066a5d0
h: refs/heads/master
i:
  371601: ba082a8
  371599: a6df0ed
v: v3
  • Loading branch information
Ben Skeggs committed Apr 26, 2013
1 parent 7804c0e commit d6bae2a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9aecbada751e6343e47cbefade718e571a8ecbbc
refs/heads/master: 066a5d0938c64bec665866b145d8538d9f96bcda
17 changes: 16 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/engine/device/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,20 @@ nouveau_device_sclass[] = {
{}
};

static int
nouveau_device_fini(struct nouveau_object *object, bool suspend)
{
struct nouveau_device *device = (void *)object;
return nouveau_subdev_fini(&device->base, suspend);
}

static int
nouveau_device_init(struct nouveau_object *object)
{
struct nouveau_device *device = (void *)object;
return nouveau_subdev_init(&device->base);
}

static void
nouveau_device_dtor(struct nouveau_object *object)
{
Expand All @@ -439,6 +453,8 @@ nouveau_device_oclass = {
.handle = NV_ENGINE(DEVICE, 0x00),
.ofuncs = &(struct nouveau_ofuncs) {
.dtor = nouveau_device_dtor,
.init = nouveau_device_init,
.fini = nouveau_device_fini,
},
};

Expand All @@ -462,7 +478,6 @@ nouveau_device_create_(struct pci_dev *pdev, u64 name, const char *sname,
if (ret)
goto done;

atomic_set(&nv_object(device)->usecount, 2);
device->pdev = pdev;
device->handle = name;
device->cfgopt = cfg;
Expand Down

0 comments on commit d6bae2a

Please sign in to comment.