qcacld-2.0: Remove usage of f_dentry for Kernel upgrade

qcacld-3.0 to qcacld-2.0 propagation

Commit: 78d28e6 ("kill f_dentry macro")

Above commit is to remove the marco of f_dentry since Kernel 3.19.
Avoid to use the Kernel version check by using the field directly.

Change-Id: I7a4b45c62afed402d49d709bb1cb870db352b70e
CRs-fixed: 966066
This commit is contained in:
Ryan Hsu 2016-01-21 15:22:39 -08:00 committed by syphyr
parent ad0c60c64c
commit f339ffe870

View file

@ -891,7 +891,7 @@ __pktlog_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
int fold_offset, ppos_data, cur_rd_offset;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *)
PDE_DATA(file->f_dentry->d_inode);
PDE_DATA(file->f_path.dentry->d_inode);
#else
struct proc_dir_entry *proc_entry = PDE(file->f_dentry->d_inode);
struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *)