drm/xe/device: Prefer the drm-managed mutex_init
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 25 Feb 2023 00:21:37 +0000 (16:21 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:43 +0000 (18:29 -0500)
commit3ea9f1f1f699c44b3064006b51566ed6accc6a53
treedf27c6918f60c68e79e393c90d3738f36d5f5cc5
parentd79bdcdf06a3b421ac386f3513365f0bf2a5649a
drm/xe/device: Prefer the drm-managed mutex_init

There's inconsistent use of mutex_init(), in xe_device_create(), with
several of them never calling mutex_destroy() in xe_device_destroy().
Migrate all of them to drmm_mutex_init(), so the destroy part is
automatically called.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230225002138.1759016-2-lucas.demarchi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_device.c