Skip to content

Commit 6b55061

Browse files
committed
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 <[email protected]> Cc: Vinay Belgaumkar <[email protected]> Reviewed-by: Tejas Upadhyay <[email protected]> Reviewed-by: Himal Prasad Ghimiray <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 960d710 commit 6b55061

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,9 @@ int xe_device_probe(struct xe_device *xe)
889889
if (err)
890890
goto err_unregister_display;
891891

892-
xe_pmu_register(&xe->pmu);
892+
err = xe_pmu_register(&xe->pmu);
893+
if (err)
894+
goto err_unregister_display;
893895

894896
xe_debugfs_register(xe);
895897

0 commit comments

Comments
 (0)