]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/gvt: mandatory require hypervisor's host_init
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 7 Dec 2018 08:16:51 +0000 (16:16 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 10 Dec 2018 07:11:59 +0000 (15:11 +0800)
Don't mark hypervisor module's host_init as optional,
but mandatory required.

Reviewed-by: Yuan, Hang <hang.yuan@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/mpt.h

index 67f19992b226f29a13d408be36da8b4820095b13..ce721099a0200c95ffdae6be0d6a7977a19c1e99 100644 (file)
  * Zero on success, negative error code if failed
  */
 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)
-               return 0;
+               return -ENODEV;
 
        return intel_gvt_host.mpt->host_init(dev, gvt, ops);
 }