Merge tag 'vfio-v5.13-rc1' of git://github.com/awilliam/linux-vfio
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / gvt / kvmgt.c
index d089770..65ff43c 100644 (file)
@@ -689,7 +689,7 @@ static void kvmgt_put_vfio_device(void *vgpu)
        vfio_device_put(vdev->vfio_device);
 }
 
-static int intel_vgpu_create(struct kobject *kobj, struct mdev_device *mdev)
+static int intel_vgpu_create(struct mdev_device *mdev)
 {
        struct intel_vgpu *vgpu = NULL;
        struct intel_vgpu_type *type;
@@ -700,10 +700,9 @@ static int intel_vgpu_create(struct kobject *kobj, struct mdev_device *mdev)
        pdev = mdev_parent_dev(mdev);
        gvt = kdev_to_i915(pdev)->gvt;
 
-       type = intel_gvt_ops->gvt_find_vgpu_type(gvt, kobject_name(kobj));
+       type = intel_gvt_ops->gvt_find_vgpu_type(gvt,
+                                                mdev_get_type_group_id(mdev));
        if (!type) {
-               gvt_vgpu_err("failed to find type %s to create\n",
-                                               kobject_name(kobj));
                ret = -EINVAL;
                goto out;
        }