diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-11 20:07:30 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-11 20:07:30 +0200 |
commit | 51373c5084e0a828286050634a786c0c0aa958d4 (patch) | |
tree | fd9f1ace108cb491569ae37a29b6dff101e817c5 /include/acpi | |
parent | aca1a5287ea328fd1f7e2bfa6806646486d86a70 (diff) | |
parent | cc85f9c05bba23eb525497b42ac5b74801ccbd87 (diff) |
Merge back earlier ACPI bus changes for 6.10.
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index e7796f373d0d..e3cbf92da370 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -170,7 +170,6 @@ struct acpi_driver { unsigned int flags; struct acpi_device_ops ops; struct device_driver drv; - struct module *owner; }; /* @@ -656,7 +655,12 @@ void acpi_scan_lock_release(void); void acpi_lock_hp_context(void); void acpi_unlock_hp_context(void); int acpi_scan_add_handler(struct acpi_scan_handler *handler); -int acpi_bus_register_driver(struct acpi_driver *driver); +/* + * use a macro to avoid include chaining to get THIS_MODULE + */ +#define acpi_bus_register_driver(drv) \ + __acpi_bus_register_driver(drv, THIS_MODULE) +int __acpi_bus_register_driver(struct acpi_driver *driver, struct module *owner); void acpi_bus_unregister_driver(struct acpi_driver *driver); int acpi_bus_scan(acpi_handle handle); void acpi_bus_trim(struct acpi_device *start); |