nouveau: remove nouveau_object_find()
No more internal users, and there's never been external users. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
4283e3f656
commit
4a68c5638e
|
@ -34,7 +34,6 @@ nouveau_drm_del
|
||||||
nouveau_drm_new
|
nouveau_drm_new
|
||||||
nouveau_getparam
|
nouveau_getparam
|
||||||
nouveau_object_del
|
nouveau_object_del
|
||||||
nouveau_object_find
|
|
||||||
nouveau_object_mclass
|
nouveau_object_mclass
|
||||||
nouveau_object_mthd
|
nouveau_object_mthd
|
||||||
nouveau_object_new
|
nouveau_object_new
|
||||||
|
|
|
@ -184,17 +184,6 @@ nouveau_object_del(struct nouveau_object **pobj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
|
||||||
nouveau_object_find(struct nouveau_object *obj, uint32_t pclass)
|
|
||||||
{
|
|
||||||
while (obj && obj->oclass != pclass) {
|
|
||||||
obj = obj->parent;
|
|
||||||
if (pclass == NOUVEAU_PARENT_CLASS)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
nouveau_drm_del(struct nouveau_drm **pdrm)
|
nouveau_drm_del(struct nouveau_drm **pdrm)
|
||||||
{
|
{
|
||||||
|
|
|
@ -109,7 +109,6 @@ int nouveau_object_sclass_get(struct nouveau_object *,
|
||||||
void nouveau_object_sclass_put(struct nouveau_sclass **);
|
void nouveau_object_sclass_put(struct nouveau_sclass **);
|
||||||
int nouveau_object_mclass(struct nouveau_object *,
|
int nouveau_object_mclass(struct nouveau_object *,
|
||||||
const struct nouveau_mclass *);
|
const struct nouveau_mclass *);
|
||||||
void *nouveau_object_find(struct nouveau_object *, uint32_t parent_class);
|
|
||||||
|
|
||||||
struct nouveau_device {
|
struct nouveau_device {
|
||||||
struct nouveau_object object;
|
struct nouveau_object object;
|
||||||
|
|
Loading…
Reference in New Issue