@@ -23,6 +23,7 @@
*/
#include <engine/graph/nv40.h>
+#include <core/device.h>
#include "nv04.h"
@@ -38,6 +39,7 @@ nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
ret = nouveau_instmem_create(parent, engine, oclass, &priv);
*pobject = nv_object(priv);
+ device->subdev[NVDEV_SUBDEV_INSTMEM] = *pobject;
if (ret)
return ret;
@@ -187,9 +187,11 @@ nv40_therm_ctor(struct nouveau_object *parent,
{
struct nv40_therm_priv *priv;
int ret;
+ struct nouveau_device *device = nv_device(parent);
ret = nouveau_therm_create(parent, engine, oclass, &priv);
*pobject = nv_object(priv);
+ device->subdev[NVDEV_SUBDEV_THERM] = *pobject;
if (ret)
return ret;