ACPI: acpi_pad: Replace acpi_driver with platform_driver
authorMichal Wilczynski <michal.wilczynski@intel.com>
Wed, 18 Oct 2023 19:09:43 +0000 (22:09 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 24 Oct 2023 18:54:29 +0000 (20:54 +0200)
commitdd0261bb9e4435a426cd86a28516129c46929ea4
tree3880e9ed68093d0b48b083767a661c336c7e380d
parent470508f63ad2483b1ae82ed67cd504ad408b2a35
ACPI: acpi_pad: Replace acpi_driver with platform_driver

The acpi_pad driver uses struct acpi_driver to register itself while it
would be more logically consistent to use struct platform_driver for this
purpose, because the corresponding platform device is present and the
role of struct acpi_device is to amend the other bus types. ACPI devices
are not meant to be used as proper representation of hardware entities,
but to collect information on those hardware entities provided by the
platform firmware.

Use struct platform_driver for registering the acpi_pad driver.

Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pad.c