diff options
| author | Hans de Goede <[email protected]> | 2023-01-30 13:25:54 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-01-30 13:30:57 +0000 |
| commit | e0c40529ff942a985eb0f3dacf18d35ee4dbb03d (patch) | |
| tree | 3a9900c1c444d93052b4de56325a66e426e3effa /drivers/platform/surface/aggregator | |
| parent | platform/x86/amd/pmf: Fix to update SPS thermals when power supply change (diff) | |
| download | kernel-e0c40529ff942a985eb0f3dacf18d35ee4dbb03d.tar.gz kernel-e0c40529ff942a985eb0f3dacf18d35ee4dbb03d.zip | |
platform/x86/amd/pmf: Ensure mutexes are initialized before use
As soon as the first handler or sysfs file is registered
the mutex may get used.
Move the initialization to before any handler registration /
sysfs file creation.
Likewise move the destruction of the mutex to after all
the de-initialization is done.
Fixes: da5ce22df5fe ("platform/x86/amd/pmf: Add support for PMF core layer")
Signed-off-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/surface/aggregator')
0 files changed, 0 insertions, 0 deletions
