@@ -37,26 +37,6 @@ static void vfio_mdev_close_device(struct vfio_device *core_vdev)
3737 parent -> ops -> close_device (mdev );
3838}
3939
40- static int vfio_mdev_open (struct vfio_device * core_vdev )
41- {
42- struct mdev_device * mdev = to_mdev_device (core_vdev -> dev );
43- struct mdev_parent * parent = mdev -> type -> parent ;
44-
45- if (unlikely (!parent -> ops -> open ))
46- return 0 ;
47-
48- return parent -> ops -> open (mdev );
49- }
50-
51- static void vfio_mdev_release (struct vfio_device * core_vdev )
52- {
53- struct mdev_device * mdev = to_mdev_device (core_vdev -> dev );
54- struct mdev_parent * parent = mdev -> type -> parent ;
55-
56- if (likely (parent -> ops -> release ))
57- parent -> ops -> release (mdev );
58- }
59-
6040static long vfio_mdev_unlocked_ioctl (struct vfio_device * core_vdev ,
6141 unsigned int cmd , unsigned long arg )
6242{
@@ -122,8 +102,6 @@ static const struct vfio_device_ops vfio_mdev_dev_ops = {
122102 .name = "vfio-mdev" ,
123103 .open_device = vfio_mdev_open_device ,
124104 .close_device = vfio_mdev_close_device ,
125- .open = vfio_mdev_open ,
126- .release = vfio_mdev_release ,
127105 .ioctl = vfio_mdev_unlocked_ioctl ,
128106 .read = vfio_mdev_read ,
129107 .write = vfio_mdev_write ,
0 commit comments