summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2010-04-20 23:31:07 +0100
committerJakob Bornecrantz <wallbraker@gmail.com>2010-04-20 23:53:59 +0100
commit1d98ce511dc81f717edb5f0f5251463b9941ec99 (patch)
tree4ddb3c9696ddc06ff7036d80856eec1593725891 /src
parentc408942c9c774257c88a6097b32743c0ba6f6718 (diff)
nouveau: Minor clean up of winsys
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/nouveau/drm/nouveau_drm_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
index 6fd6009d3a..88989d0438 100644
--- a/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
+++ b/src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
@@ -146,14 +146,15 @@ nouveau_drm_create_screen(struct drm_api *api, int fd,
return nvws->pscreen;
}
-struct drm_api drm_api_hooks = {
+static struct drm_api nouveau_drm_api_hooks = {
.name = "nouveau",
.driver_name = "nouveau",
.create_screen = nouveau_drm_create_screen,
+ .destroy = NULL;
};
struct drm_api *
drm_api_create() {
- return &drm_api_hooks;
+ return &nouveau_drm_api_hooks;
}