summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/log.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/log.c b/drivers/gpu/nvgpu/common/linux/log.c
index bb1e5f63..9883acfc 100644
--- a/drivers/gpu/nvgpu/common/linux/log.c
+++ b/drivers/gpu/nvgpu/common/linux/log.c
@@ -20,6 +20,7 @@
20#include <nvgpu/log.h> 20#include <nvgpu/log.h>
21 21
22#include "gk20a/gk20a.h" 22#include "gk20a/gk20a.h"
23#include "gk20a/platform_gk20a.h"
23 24
24/* 25/*
25 * Define a length for log buffers. This is the buffer that the 'fmt, ...' part 26 * Define a length for log buffers. This is the buffer that the 'fmt, ...' part
@@ -52,7 +53,7 @@ int nvgpu_log_mask_enabled(struct gk20a *g, u32 log_mask)
52 53
53static inline const char *nvgpu_log_name(struct gk20a *g) 54static inline const char *nvgpu_log_name(struct gk20a *g)
54{ 55{
55 return dev_name(g->dev); 56 return dev_name(dev_from_gk20a(g));
56} 57}
57 58
58#ifdef CONFIG_GK20A_TRACE_PRINTK 59#ifdef CONFIG_GK20A_TRACE_PRINTK