aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-11-08 20:36:33 -0500
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 04:01:33 -0500
commit2a44e4997c5fee8e1da1589ff57e0bd1c53f03ce (patch)
tree26fa7eb5269183d1fbc5314db7cad4f4a8abc720 /drivers/gpu/drm/nouveau/nouveau_state.c
parentd2edab4acffb35a6e24259886d377774efd37e6e (diff)
drm/nouveau/disp: introduce proper init/fini, separate from create/destroy
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index 46831fea7861..0c3368b36e6c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -80,8 +80,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
80 engine->display.early_init = nv04_display_early_init; 80 engine->display.early_init = nv04_display_early_init;
81 engine->display.late_takedown = nv04_display_late_takedown; 81 engine->display.late_takedown = nv04_display_late_takedown;
82 engine->display.create = nv04_display_create; 82 engine->display.create = nv04_display_create;
83 engine->display.init = nv04_display_init;
84 engine->display.destroy = nv04_display_destroy; 83 engine->display.destroy = nv04_display_destroy;
84 engine->display.init = nv04_display_init;
85 engine->display.fini = nv04_display_fini;
85 engine->gpio.init = nouveau_stub_init; 86 engine->gpio.init = nouveau_stub_init;
86 engine->gpio.takedown = nouveau_stub_takedown; 87 engine->gpio.takedown = nouveau_stub_takedown;
87 engine->gpio.get = NULL; 88 engine->gpio.get = NULL;
@@ -129,8 +130,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
129 engine->display.early_init = nv04_display_early_init; 130 engine->display.early_init = nv04_display_early_init;
130 engine->display.late_takedown = nv04_display_late_takedown; 131 engine->display.late_takedown = nv04_display_late_takedown;
131 engine->display.create = nv04_display_create; 132 engine->display.create = nv04_display_create;
132 engine->display.init = nv04_display_init;
133 engine->display.destroy = nv04_display_destroy; 133 engine->display.destroy = nv04_display_destroy;
134 engine->display.init = nv04_display_init;
135 engine->display.fini = nv04_display_fini;
134 engine->gpio.init = nouveau_stub_init; 136 engine->gpio.init = nouveau_stub_init;
135 engine->gpio.takedown = nouveau_stub_takedown; 137 engine->gpio.takedown = nouveau_stub_takedown;
136 engine->gpio.get = nv10_gpio_get; 138 engine->gpio.get = nv10_gpio_get;
@@ -178,8 +180,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
178 engine->display.early_init = nv04_display_early_init; 180 engine->display.early_init = nv04_display_early_init;
179 engine->display.late_takedown = nv04_display_late_takedown; 181 engine->display.late_takedown = nv04_display_late_takedown;
180 engine->display.create = nv04_display_create; 182 engine->display.create = nv04_display_create;
181 engine->display.init = nv04_display_init;
182 engine->display.destroy = nv04_display_destroy; 183 engine->display.destroy = nv04_display_destroy;
184 engine->display.init = nv04_display_init;
185 engine->display.fini = nv04_display_fini;
183 engine->gpio.init = nouveau_stub_init; 186 engine->gpio.init = nouveau_stub_init;
184 engine->gpio.takedown = nouveau_stub_takedown; 187 engine->gpio.takedown = nouveau_stub_takedown;
185 engine->gpio.get = nv10_gpio_get; 188 engine->gpio.get = nv10_gpio_get;
@@ -227,8 +230,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
227 engine->display.early_init = nv04_display_early_init; 230 engine->display.early_init = nv04_display_early_init;
228 engine->display.late_takedown = nv04_display_late_takedown; 231 engine->display.late_takedown = nv04_display_late_takedown;
229 engine->display.create = nv04_display_create; 232 engine->display.create = nv04_display_create;
230 engine->display.init = nv04_display_init;
231 engine->display.destroy = nv04_display_destroy; 233 engine->display.destroy = nv04_display_destroy;
234 engine->display.init = nv04_display_init;
235 engine->display.fini = nv04_display_fini;
232 engine->gpio.init = nouveau_stub_init; 236 engine->gpio.init = nouveau_stub_init;
233 engine->gpio.takedown = nouveau_stub_takedown; 237 engine->gpio.takedown = nouveau_stub_takedown;
234 engine->gpio.get = nv10_gpio_get; 238 engine->gpio.get = nv10_gpio_get;
@@ -279,8 +283,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
279 engine->display.early_init = nv04_display_early_init; 283 engine->display.early_init = nv04_display_early_init;
280 engine->display.late_takedown = nv04_display_late_takedown; 284 engine->display.late_takedown = nv04_display_late_takedown;
281 engine->display.create = nv04_display_create; 285 engine->display.create = nv04_display_create;
282 engine->display.init = nv04_display_init;
283 engine->display.destroy = nv04_display_destroy; 286 engine->display.destroy = nv04_display_destroy;
287 engine->display.init = nv04_display_init;
288 engine->display.fini = nv04_display_fini;
284 engine->gpio.init = nouveau_stub_init; 289 engine->gpio.init = nouveau_stub_init;
285 engine->gpio.takedown = nouveau_stub_takedown; 290 engine->gpio.takedown = nouveau_stub_takedown;
286 engine->gpio.get = nv10_gpio_get; 291 engine->gpio.get = nv10_gpio_get;
@@ -336,8 +341,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
336 engine->display.early_init = nv50_display_early_init; 341 engine->display.early_init = nv50_display_early_init;
337 engine->display.late_takedown = nv50_display_late_takedown; 342 engine->display.late_takedown = nv50_display_late_takedown;
338 engine->display.create = nv50_display_create; 343 engine->display.create = nv50_display_create;
339 engine->display.init = nv50_display_init;
340 engine->display.destroy = nv50_display_destroy; 344 engine->display.destroy = nv50_display_destroy;
345 engine->display.init = nv50_display_init;
346 engine->display.fini = nv50_display_fini;
341 engine->gpio.init = nv50_gpio_init; 347 engine->gpio.init = nv50_gpio_init;
342 engine->gpio.takedown = nv50_gpio_fini; 348 engine->gpio.takedown = nv50_gpio_fini;
343 engine->gpio.get = nv50_gpio_get; 349 engine->gpio.get = nv50_gpio_get;
@@ -411,8 +417,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
411 engine->display.early_init = nv50_display_early_init; 417 engine->display.early_init = nv50_display_early_init;
412 engine->display.late_takedown = nv50_display_late_takedown; 418 engine->display.late_takedown = nv50_display_late_takedown;
413 engine->display.create = nv50_display_create; 419 engine->display.create = nv50_display_create;
414 engine->display.init = nv50_display_init;
415 engine->display.destroy = nv50_display_destroy; 420 engine->display.destroy = nv50_display_destroy;
421 engine->display.init = nv50_display_init;
422 engine->display.fini = nv50_display_fini;
416 engine->gpio.init = nv50_gpio_init; 423 engine->gpio.init = nv50_gpio_init;
417 engine->gpio.takedown = nouveau_stub_takedown; 424 engine->gpio.takedown = nouveau_stub_takedown;
418 engine->gpio.get = nv50_gpio_get; 425 engine->gpio.get = nv50_gpio_get;
@@ -463,8 +470,9 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev)
463 engine->display.early_init = nouveau_stub_init; 470 engine->display.early_init = nouveau_stub_init;
464 engine->display.late_takedown = nouveau_stub_takedown; 471 engine->display.late_takedown = nouveau_stub_takedown;
465 engine->display.create = nvd0_display_create; 472 engine->display.create = nvd0_display_create;
466 engine->display.init = nvd0_display_init;
467 engine->display.destroy = nvd0_display_destroy; 473 engine->display.destroy = nvd0_display_destroy;
474 engine->display.init = nvd0_display_init;
475 engine->display.fini = nvd0_display_fini;
468 engine->gpio.init = nv50_gpio_init; 476 engine->gpio.init = nv50_gpio_init;
469 engine->gpio.takedown = nouveau_stub_takedown; 477 engine->gpio.takedown = nouveau_stub_takedown;
470 engine->gpio.get = nvd0_gpio_get; 478 engine->gpio.get = nvd0_gpio_get;