drm/vc4: hvs: Skip DebugFS Registration for FKMS

FKMS doesn't have an HVS and it's expected. Return from the debugfs init
function immediately if we're running with fkms.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
Maxime Ripard
2022-07-11 10:38:25 +02:00
committed by Dom Cobley
parent 66ce7f0772
commit c0097c8e40

View File

@@ -977,6 +977,9 @@ int vc4_hvs_debugfs_init(struct drm_minor *minor)
struct vc4_hvs *hvs = vc4->hvs;
int ret;
if (vc4->firmware_kms)
return 0;
if (!vc4->hvs)
return -ENODEV;