nouveau: Minor clean up of winsys
authorJakob Bornecrantz <wallbraker@gmail.com>
Tue, 20 Apr 2010 22:31:07 +0000 (23:31 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Tue, 20 Apr 2010 22:53:59 +0000 (23:53 +0100)
src/gallium/winsys/nouveau/drm/nouveau_drm_api.c

index 6fd6009d3a581695a8d5478d092dbd3949455ff7..88989d04380afbf7a5d69fd78a4be26225cb5cb6 100644 (file)
@@ -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;
 }