summaryrefslogtreecommitdiff
path: root/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-11-27 10:16:13 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-12-22 13:22:30 +1000
commit4a68c5638e1b0dd62860f1211dbcd751005beb79 (patch)
treeaa5691618abebea1566d812132be1283d57e16ea /nouveau
parent4283e3f656541c4533c89b2cdc501aa6dc7da3dc (diff)
downloadlibdrm-4a68c5638e1b0dd62860f1211dbcd751005beb79.tar.gz
libdrm-4a68c5638e1b0dd62860f1211dbcd751005beb79.tar.bz2
libdrm-4a68c5638e1b0dd62860f1211dbcd751005beb79.zip
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>
Diffstat (limited to 'nouveau')
-rwxr-xr-xnouveau/nouveau-symbol-check1
-rw-r--r--nouveau/nouveau.c11
-rw-r--r--nouveau/nouveau.h1
3 files changed, 0 insertions, 13 deletions
diff --git a/nouveau/nouveau-symbol-check b/nouveau/nouveau-symbol-check
index e360b92d..275b6e7e 100755
--- a/nouveau/nouveau-symbol-check
+++ b/nouveau/nouveau-symbol-check
@@ -34,7 +34,6 @@ nouveau_drm_del
nouveau_drm_new
nouveau_getparam
nouveau_object_del
-nouveau_object_find
nouveau_object_mclass
nouveau_object_mthd
nouveau_object_new
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index b474c775..56e00aca 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -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
nouveau_drm_del(struct nouveau_drm **pdrm)
{
diff --git a/nouveau/nouveau.h b/nouveau/nouveau.h
index 2287eba8..a693acff 100644
--- a/nouveau/nouveau.h
+++ b/nouveau/nouveau.h
@@ -109,7 +109,6 @@ int nouveau_object_sclass_get(struct nouveau_object *,
void nouveau_object_sclass_put(struct nouveau_sclass **);
int nouveau_object_mclass(struct nouveau_object *,
const struct nouveau_mclass *);
-void *nouveau_object_find(struct nouveau_object *, uint32_t parent_class);
struct nouveau_device {
struct nouveau_object object;