ata: ahci_platform: Make code agnostic to OF/ACPI
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 9 Jun 2023 15:49:00 +0000 (18:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Jun 2023 11:34:31 +0000 (13:34 +0200)
commit259b8366fdd729413a0de399e85e49154e71de57
tree85932f92505b538212be671f25622b3e296314ba
parent2de5897b5c148a1cdf31bf4628590825d694c37d
ata: ahci_platform: Make code agnostic to OF/ACPI

With the help of a new device_is_compatible() make
the driver code agnostic to the OF/ACPI. This makes
it neater. As a side effect the header inclusions is
corrected (seems mod_devicetable.h was implicitly
included).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Message-ID: <20230609154900.43024-4-andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/ahci_platform.c