diff options
| author | 2024-03-28 20:49:11 +0100 | |
|---|---|---|
| committer | 2024-04-08 16:16:55 +0200 | |
| commit | 48b9c4862bd303628b2e772591f2ef958e02a316 (patch) | |
| tree | 19328dc612c68aa73dea34a4cca7c3198963bdbf /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | ACPI: bus: Indicate support for IRQ ResourceSource thru _OSC (diff) | |
ACPI: store owner from modules with acpi_bus_register_driver()
Modules registering driver with acpi_bus_register_driver() often forget to
set .owner field. The field is used by some of other kernel parts for
reference counting (try_module_get()), so it is expected that drivers
will set it.
Solve the problem by moving this task away from the drivers to the core
ACPI bus code, just like we did for platform_driver in
commit 9447057eaff8 ("platform_device: use a macro instead of
platform_driver_register").
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
