diff options
Diffstat (limited to 'drivers/bluetooth/sd8797/bt/bt_proc.c')
-rw-r--r-- | drivers/bluetooth/sd8797/bt/bt_proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/bluetooth/sd8797/bt/bt_proc.c b/drivers/bluetooth/sd8797/bt/bt_proc.c index 315598540f58..08ebd6522397 100644 --- a/drivers/bluetooth/sd8797/bt/bt_proc.c +++ b/drivers/bluetooth/sd8797/bt/bt_proc.c @@ -348,7 +348,8 @@ proc_write(struct file *file, static void proc_on_close(struct inode *inode, struct file *file) { - struct proc_private_data *priv = PDE_DATA(inode); + struct proc_dir_entry *entry = PDE(inode); + struct proc_private_data *priv = entry->data; struct proc_data *pdata = file->private_data; char *line; int i; @@ -397,7 +398,8 @@ proc_on_close(struct inode *inode, struct file *file) static int proc_open(struct inode *inode, struct file *file) { - struct proc_private_data *priv = PDE_DATA(inode); + struct proc_dir_entry *entry = PDE(inode); + struct proc_private_data *priv = entry->data; struct proc_data *pdata; int i; char *p; |