diff options
| author | Thomas Weißschuh <[email protected]> | 2025-01-03 23:05:10 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-01-09 11:40:19 +0000 |
| commit | d03cfde56f5cf9ec50b4cf099a42bf056fc80ddd (patch) | |
| tree | b012155c694e256256f8f23b345413605dd922d3 /drivers/platform/x86/intel/punit_ipc.c | |
| parent | platform/x86: firmware_attributes_class: Move include linux/device/class.h (diff) | |
| download | kernel-d03cfde56f5cf9ec50b4cf099a42bf056fc80ddd.tar.gz kernel-d03cfde56f5cf9ec50b4cf099a42bf056fc80ddd.zip | |
platform/x86: firmware_attributes_class: Simplify API
The module core already guarantees that a module can only be unloaded
after all other modules using its symbols have been unloaded.
As it's already the responsibility of the drivers using
firmware_attributes_class to clean up their devices before unloading,
the lifetime of the firmware_attributes_class can be bound to the
lifetime of the module.
This enables the direct usage of firmware_attributes_class from the
drivers, without having to go through the lifecycle functions,
leading to simplifications for both the subsystem and its users.
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Armin Wolf <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Reviewed-by: Mark Pearson <[email protected]>
Tested-by: Mark Pearson <[email protected]>
Link: https://lore.kernel.org/r/20250104-firmware-attributes-simplify-v1-2-949f9709e405@weissschuh.net
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/punit_ipc.c')
0 files changed, 0 insertions, 0 deletions
