Commit f49fc357 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Zhi Wang

drm/i915/gvt: rename intel_vgpu_ops to intel_vgpu_mdev_ops

Free the intel_vgpu_ops symbol name for something that fits better.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarZhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220411141403.86980-4-hch@lst.deReviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: default avatarZhi Wang <zhi.a.wang@intel.com>
parent 36774806
...@@ -1765,7 +1765,7 @@ static const struct attribute_group *intel_vgpu_groups[] = { ...@@ -1765,7 +1765,7 @@ static const struct attribute_group *intel_vgpu_groups[] = {
NULL, NULL,
}; };
static struct mdev_parent_ops intel_vgpu_ops = { static struct mdev_parent_ops intel_vgpu_mdev_ops = {
.mdev_attr_groups = intel_vgpu_groups, .mdev_attr_groups = intel_vgpu_groups,
.create = intel_vgpu_create, .create = intel_vgpu_create,
.remove = intel_vgpu_remove, .remove = intel_vgpu_remove,
...@@ -1788,9 +1788,9 @@ static int kvmgt_host_init(struct device *dev, void *gvt, const void *ops) ...@@ -1788,9 +1788,9 @@ static int kvmgt_host_init(struct device *dev, void *gvt, const void *ops)
return ret; return ret;
intel_gvt_ops = ops; intel_gvt_ops = ops;
intel_vgpu_ops.supported_type_groups = gvt_vgpu_type_groups; intel_vgpu_mdev_ops.supported_type_groups = gvt_vgpu_type_groups;
ret = mdev_register_device(dev, &intel_vgpu_ops); ret = mdev_register_device(dev, &intel_vgpu_mdev_ops);
if (ret) if (ret)
intel_gvt_cleanup_vgpu_type_groups((struct intel_gvt *)gvt); intel_gvt_cleanup_vgpu_type_groups((struct intel_gvt *)gvt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment