Commit 2313b189 authored by Zhenyu Wang's avatar Zhenyu Wang

drm/i915/gvt: mandatory require hypervisor's host_init

Don't mark hypervisor module's host_init as optional,
but mandatory required.
Reviewed-by: default avatarYuan, Hang <hang.yuan@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent d1810909
...@@ -52,9 +52,8 @@ ...@@ -52,9 +52,8 @@
static inline int intel_gvt_hypervisor_host_init(struct device *dev, static inline int intel_gvt_hypervisor_host_init(struct device *dev,
void *gvt, const void *ops) void *gvt, const void *ops)
{ {
/* optional to provide */
if (!intel_gvt_host.mpt->host_init) if (!intel_gvt_host.mpt->host_init)
return 0; return -ENODEV;
return intel_gvt_host.mpt->host_init(dev, gvt, ops); return intel_gvt_host.mpt->host_init(dev, gvt, ops);
} }
......
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