1
0

ACPI / glue: Split dev_is_platform() out of module for wide use

There would be useful to have in future the similar API in platform
core, as we have, for example, for PCI subsystem, to check if device
belongs to it.

Thus, split out conditional to a macro dev_is_platform() for wide use.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Este cometimento está contido em:
Andy Shevchenko
2018-08-20 16:45:41 +03:00
cometido por Rafael J. Wysocki
ascendente 11da3a7f84
cometimento 719cf71cad
2 ficheiros modificados com 2 adições e 1 eliminações

Ver ficheiro

@@ -320,7 +320,7 @@ static int acpi_platform_notify(struct device *dev)
if (!adev)
goto out;
if (dev->bus == &platform_bus_type)
if (dev_is_platform(dev))
acpi_configure_pmsi_domain(dev);
if (type && type->setup)