summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-07-08 10:50:36 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-07-08 12:53:38 +1000
commit4a25ca4701015e186c9e2ca4486583458c8f1175 (patch)
treededea35b45f65830406d1904bda6dcf880c9fba5
parent30dcefc09b13a76cd4f28c5e02b658c2b0911c84 (diff)
fb/ram/fuc: fix test for gpio presence
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--nvkm/subdev/fb/ramfuc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/subdev/fb/ramfuc.h b/nvkm/subdev/fb/ramfuc.h
index 04e38492..2af9cfd2 100644
--- a/nvkm/subdev/fb/ramfuc.h
+++ b/nvkm/subdev/fb/ramfuc.h
@@ -107,7 +107,7 @@ ramfuc_nsec(struct ramfuc *ram, u32 nsec)
#define ram_init(s,p) ramfuc_init(&(s)->base, (p))
#define ram_exec(s,e) ramfuc_exec(&(s)->base, (e))
-#define ram_have(s,r) ((s)->r_##r.addr != 0x000000)
+#define ram_have(s,r) ((s)->r_##r.addr[0] != 0x000000)
#define ram_rd32(s,r) ramfuc_rd32(&(s)->base, &(s)->r_##r)
#define ram_wr32(s,r,d) ramfuc_wr32(&(s)->base, &(s)->r_##r, (d))
#define ram_nuke(s,r) ramfuc_nuke(&(s)->base, &(s)->r_##r)