[CI 12/13] drm/xe/pmu: Fail probe if xe_pmu_register() fails
Lucas De Marchi
lucas.demarchi at intel.com
Thu Feb 13 19:29:08 UTC 2025
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 at intel.com>
Cc: Vinay Belgaumkar <vinay.belgaumkar at intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
drivers/gpu/drm/xe/xe_device.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 86f3fd399f9ba..44471604142fc 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -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);
--
2.48.1
More information about the Intel-xe
mailing list