diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2016-12-30 18:13:41 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-12-30 18:13:41 +0300 |
commit | 9372e6feaafb65d88f667ffb5b7b425f8568344f (patch) | |
tree | 2fa165cb84cc92d297d283f4fe171b045dcbeb61 /drivers/gpu/drm | |
parent | 42930553a7c11f06351bc08b889808d0f6020f08 (diff) | |
download | linux-9372e6feaafb65d88f667ffb5b7b425f8568344f.tar.xz |
vfio-mdev: Make mdev_parent private
Rather than hoping for good behavior by marking some elements
internal, enforce it by making the entire structure private and
creating an accessor function for the one useful external field.
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Jike Song <jike.song@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed by: Kirti Wankhede <kwankhede@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/kvmgt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index 081ada238107..38500329aa92 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c @@ -396,7 +396,7 @@ static int intel_vgpu_create(struct kobject *kobj, struct mdev_device *mdev) struct device *pdev; void *gvt; - pdev = mdev->parent->dev; + pdev = mdev_parent_dev(mdev); gvt = kdev_to_i915(pdev)->gvt; type = intel_gvt_find_vgpu_type(gvt, kobject_name(kobj)); |