These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / misc / mic / host / mic_fops.c
index 85776d7..8cc1d90 100644 (file)
@@ -30,8 +30,8 @@
 int mic_open(struct inode *inode, struct file *f)
 {
        struct mic_vdev *mvdev;
-       struct mic_device *mdev = container_of(inode->i_cdev,
-               struct mic_device, cdev);
+       struct mic_device *mdev = container_of(f->private_data,
+               struct mic_device, miscdev);
 
        mvdev = kzalloc(sizeof(*mvdev), GFP_KERNEL);
        if (!mvdev)