diff options
| author | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-02-13 22:29:00 +0300 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-02-14 22:42:54 +0300 |
| commit | 0bcf41171c64234e79eb3552d00f0aad8a47e8d3 (patch) | |
| tree | b029045fabb77e6e8be2c91e20c8f58fd21b1505 | |
| parent | 121b214cdf10d4129b64f2b1f31807154c74ae55 (diff) | |
| download | linux-0bcf41171c64234e79eb3552d00f0aad8a47e8d3.tar.xz | |
drm/xe: Fix xe_tile_init_noalloc() error propagation
Propagate the error to the caller so initialization properly stops if
sysfs creation fails.
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213192909.996148-4-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
| -rw-r--r-- | drivers/gpu/drm/xe/xe_tile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_tile.c b/drivers/gpu/drm/xe/xe_tile.c index d9a7a04ff652..d29658ff4dd4 100644 --- a/drivers/gpu/drm/xe/xe_tile.c +++ b/drivers/gpu/drm/xe/xe_tile.c @@ -168,9 +168,7 @@ int xe_tile_init_noalloc(struct xe_tile *tile) xe_wa_apply_tile_workarounds(tile); - err = xe_tile_sysfs_init(tile); - - return 0; + return xe_tile_sysfs_init(tile); } int xe_tile_init(struct xe_tile *tile) |
