drm/nouveau/bios: cosmetic changes
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:06 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:07 +0000 (12:40 +1000)
This is purely preparation for upcoming commits, there should be no
code changes here.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c

index cef287e0bbf22bc01ad3932fcb1eb530e58612b2..0b102c8f69c8f9d289f233f3594d0c15883b26d5 100644 (file)
@@ -3,7 +3,7 @@
 #include <core/subdev.h>
 
 struct nvkm_bios {
-       struct nvkm_subdev base;
+       struct nvkm_subdev subdev;
        u32 size;
        u8 *data;
 
index 8db204f92ed305a3dffcf8c1dfc99d523f565a8d..0cd9ab4ed8eecd2b166dbfe40e69729ea96815a5 100644 (file)
@@ -171,21 +171,21 @@ nvkm_bios_dtor(struct nvkm_object *object)
 {
        struct nvkm_bios *bios = (void *)object;
        kfree(bios->data);
-       nvkm_subdev_destroy(&bios->base);
+       nvkm_subdev_destroy(&bios->subdev);
 }
 
 static int
 nvkm_bios_init(struct nvkm_object *object)
 {
        struct nvkm_bios *bios = (void *)object;
-       return nvkm_subdev_init(&bios->base);
+       return nvkm_subdev_init(&bios->subdev);
 }
 
 static int
 nvkm_bios_fini(struct nvkm_object *object, bool suspend)
 {
        struct nvkm_bios *bios = (void *)object;
-       return nvkm_subdev_fini(&bios->base, suspend);
+       return nvkm_subdev_fini(&bios->subdev, suspend);
 }
 
 struct nvkm_oclass
index 6192a9e27bb70e4a64c05097cdd3dedfc1800356..c64a5484c9c8175259f7bcb0adc8603236dcea61 100644 (file)
@@ -206,7 +206,7 @@ nvbios_shadow(struct nvkm_bios *bios)
                { shadow_class, 1, &nvbios_pcirom },
                { shadow_class, 1, &nvbios_platform },
                { shadow_class }
-       }, *mthd = mthds, *best = NULL;
+       }, *mthd, *best = NULL;
        const char *optarg;
        char *source;
        int optlen;