Commit 6b550615 authored by Lucas De Marchi's avatar Lucas De Marchi
Browse files

drm/xe/pmu: Fail probe if xe_pmu_register() fails



Now that previous callers in xe_device_probe() are handling the errors,
that can be done for xe_pmu_register() as well.

Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: default avatarTejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: default avatarHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213192909.996148-12-lucas.demarchi@intel.com


Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 960d7104
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -889,7 +889,9 @@ int xe_device_probe(struct xe_device *xe)
	if (err)
		goto err_unregister_display;

	xe_pmu_register(&xe->pmu);
	err = xe_pmu_register(&xe->pmu);
	if (err)
		goto err_unregister_display;

	xe_debugfs_register(xe);