mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
drm/nouveau/fb: allow chipset-specific actions for oneinit()
Signed-off-by: Ben Skeggs <[email protected]>
This commit is contained in:
parent
06d4f26cc3
commit
917d95a86e
2 changed files with 9 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ static int
|
|||
nvkm_fb_oneinit(struct nvkm_subdev *subdev)
|
||||
{
|
||||
struct nvkm_fb *fb = nvkm_fb(subdev);
|
||||
|
||||
if (fb->func->ram_new) {
|
||||
int ret = fb->func->ram_new(fb, &fb->ram);
|
||||
if (ret) {
|
||||
|
|
@ -105,6 +106,13 @@ nvkm_fb_oneinit(struct nvkm_subdev *subdev)
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
if (fb->func->oneinit) {
|
||||
int ret = fb->func->oneinit(fb);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ struct nvkm_bios;
|
|||
|
||||
struct nvkm_fb_func {
|
||||
void *(*dtor)(struct nvkm_fb *);
|
||||
int (*oneinit)(struct nvkm_fb *);
|
||||
void (*init)(struct nvkm_fb *);
|
||||
void (*intr)(struct nvkm_fb *);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue