drm/i915/gvt: declare gvt as i915's soft dependency
authorHang Yuan <hang.yuan@linux.intel.com>
Mon, 9 Jul 2018 10:24:10 +0000 (18:24 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 10 Jul 2018 03:13:11 +0000 (11:13 +0800)
This helps initramfs builder and other tools to know the full dependencies
of i915 and have gvt module loaded with i915.

v2: add condition and change to pre-dependency (Chris)
v3: move declaration to gvt.c. (Chris)
v4: remove xengt (Zhenyu)

Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.c

index 4e65266..712f9d1 100644 (file)
@@ -468,3 +468,7 @@ out_clean_idr:
        kfree(gvt);
        return ret;
 }
+
+#if IS_ENABLED(CONFIG_DRM_I915_GVT_KVMGT)
+MODULE_SOFTDEP("pre: kvmgt");
+#endif