]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/media/v4l2-core/v4l2-dev.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / drivers / media / v4l2-core / v4l2-dev.c
index 51b3a7713dcd33c7c876489e2ce3c03188bb13d4..de1e9ab7db9910169a1f94ee5f4617336a54e6eb 100644 (file)
@@ -222,7 +222,7 @@ static struct class video_class = {
 
 struct video_device *video_devdata(struct file *file)
 {
-       return video_device[iminor(file->f_path.dentry->d_inode)];
+       return video_device[iminor(file_inode(file))];
 }
 EXPORT_SYMBOL(video_devdata);