summaryrefslogtreecommitdiff
path: root/nvkm/subdev/gpio/nve0.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-05-12 14:18:06 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-06-11 16:02:08 +1000
commitc0472a5eafbbf7204b3d37c9e749e1a2baf73cf4 (patch)
tree9617e594913e46dc9f235c49a776984058326b55 /nvkm/subdev/gpio/nve0.c
parent78133e4b74a17eabee7b0cca91193d4205899935 (diff)
downloadnouveau-c0472a5eafbbf7204b3d37c9e749e1a2baf73cf4.tar.gz
gpio: use indirect pointer to base class definition
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm/subdev/gpio/nve0.c')
-rw-r--r--nvkm/subdev/gpio/nve0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nvkm/subdev/gpio/nve0.c b/nvkm/subdev/gpio/nve0.c
index 66a3a6c64..87f6304b6 100644
--- a/nvkm/subdev/gpio/nve0.c
+++ b/nvkm/subdev/gpio/nve0.c
@@ -119,8 +119,8 @@ nve0_gpio_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return 0;
}
-struct nouveau_oclass
-nve0_gpio_oclass = {
+struct nouveau_oclass *
+nve0_gpio_oclass = &(struct nouveau_oclass) {
.handle = NV_SUBDEV(GPIO, 0xe0),
.ofuncs = &(struct nouveau_ofuncs) {
.ctor = nve0_gpio_ctor,