summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:15 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:37:36 +1000
commit27ea56048a610fff746afd278e0ed5c016ff56db (patch)
tree31bedb45f12b6d06f815454ef544294f632c92f4 /lib
parent7a8569d230f3b6f8a280a8e3fb605c824eae7232 (diff)
i2c: transition pad/ports away from being based on nvkm_object
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/include/nvif/os.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h
index 3cb3a163..0116864f 100644
--- a/lib/include/nvif/os.h
+++ b/lib/include/nvif/os.h
@@ -636,7 +636,8 @@ struct device {
char name[64];
};
-#define dev_crit(d,f,a...) printf("nouveau %s: "f, (d)->name, ##a)
+#define dev_name(d) (d)->name
+#define dev_crit(d,f,a...) printf("nouveau %s: "f, dev_name(d), ##a)
#define dev_err(d,f,a...) dev_crit((d), f, ##a)
#define dev_warn(d,f,a...) dev_crit((d), f, ##a)
#define dev_notice(d,f,a...) dev_crit((d), f, ##a)