[PATCH 5.15 208/374] drm/amdgpu/debugfs: fix error code when smc register accessors are NULL