summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2024-11-05 00:35:10 +0300
committerLucas De Marchi <lucas.demarchi@intel.com>2024-11-05 22:24:33 +0300
commit9116b5760e615336b0c5060a85b25b2ec7d7c48b (patch)
tree547ffef8ddbc18154349b932353dcb084a535899 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentc62018a002dd5da0262e005a89fe691ca8d57cf6 (diff)
downloadlinux-9116b5760e615336b0c5060a85b25b2ec7d7c48b.tar.xz
drm/i915/pmu: Stop setting event_init to NULL
Setting event_init to NULL is mostly done to detect when the driver is partially working: i915 probed, but pmu is not registered. However, checking for event_init is odd as it was supposed to always be set and kernel/events/ would just crash if it found it set to NULL. Since there's already a "closed" boolean, use that instead and extend it's meaning to unregistered/unregistering. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241104213512.2314930-3-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions