Commit a00014e3 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/bios: cosmetic changes

This is purely preparation for upcoming commits, there should be no
code changes here.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 5b0c189f
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <core/subdev.h> #include <core/subdev.h>
struct nvkm_bios { struct nvkm_bios {
struct nvkm_subdev base; struct nvkm_subdev subdev;
u32 size; u32 size;
u8 *data; u8 *data;
......
...@@ -171,21 +171,21 @@ nvkm_bios_dtor(struct nvkm_object *object) ...@@ -171,21 +171,21 @@ nvkm_bios_dtor(struct nvkm_object *object)
{ {
struct nvkm_bios *bios = (void *)object; struct nvkm_bios *bios = (void *)object;
kfree(bios->data); kfree(bios->data);
nvkm_subdev_destroy(&bios->base); nvkm_subdev_destroy(&bios->subdev);
} }
static int static int
nvkm_bios_init(struct nvkm_object *object) nvkm_bios_init(struct nvkm_object *object)
{ {
struct nvkm_bios *bios = (void *)object; struct nvkm_bios *bios = (void *)object;
return nvkm_subdev_init(&bios->base); return nvkm_subdev_init(&bios->subdev);
} }
static int static int
nvkm_bios_fini(struct nvkm_object *object, bool suspend) nvkm_bios_fini(struct nvkm_object *object, bool suspend)
{ {
struct nvkm_bios *bios = (void *)object; struct nvkm_bios *bios = (void *)object;
return nvkm_subdev_fini(&bios->base, suspend); return nvkm_subdev_fini(&bios->subdev, suspend);
} }
struct nvkm_oclass struct nvkm_oclass
......
...@@ -206,7 +206,7 @@ nvbios_shadow(struct nvkm_bios *bios) ...@@ -206,7 +206,7 @@ nvbios_shadow(struct nvkm_bios *bios)
{ shadow_class, 1, &nvbios_pcirom }, { shadow_class, 1, &nvbios_pcirom },
{ shadow_class, 1, &nvbios_platform }, { shadow_class, 1, &nvbios_platform },
{ shadow_class } { shadow_class }
}, *mthd = mthds, *best = NULL; }, *mthd, *best = NULL;
const char *optarg; const char *optarg;
char *source; char *source;
int optlen; int optlen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment