summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2019-03-29 12:38:46 -0400
committerTom St Denis <tom.stdenis@amd.com>2019-03-29 19:54:49 -0400
commit155b4a3c591a056eacfbde273243144fa21661c4 (patch)
tree9acd5e0ba3e00b0663b86b001333f007c1684d23
parent3c002fa3fb0b65c14e8b66a68821059665d351f3 (diff)
drm/amd/amdkcl: Fix private data member for kernels below v3.9amd-18.50
Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Tim Writer <Tim.Writer@amd.com>
-rw-r--r--include/kcl/kcl_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kcl/kcl_fs.h b/include/kcl/kcl_fs.h
index f73e14f951bd..6035e39096fd 100644
--- a/include/kcl/kcl_fs.h
+++ b/include/kcl/kcl_fs.h
@@ -7,7 +7,7 @@
static inline void *kcl_file_private(const struct file *f)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)
- return f->private_data;
+ return file_inode(f)->i_private;
#else
return f->f_inode->i_private;
#endif