You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'acpi-hotplug'
* acpi-hotplug: ACPI / scan: ACPI device object sysfs attribute for _STA evaluation ACPI / hotplug / driver core: Handle containers in a special way ACPI / hotplug: Add demand_offline hotplug profile flag ACPI / bind: Move acpi_get_child() to drivers/ide/ide-acpi.c ACPI / bind: Pass struct acpi_device pointer to acpi_bind_one() ACPI / bind: Rework struct acpi_bus_type ACPI / bind: Redefine acpi_preset_companion() ACPI / bind: Redefine acpi_get_child() PCI / ACPI: Use acpi_find_child_device() for child devices lookup ACPI / bind: Simplify child device lookups ACPI / scan: Use direct recurrence for device hierarchy walks ACPI: Introduce acpi_set_device_status() ACPI / hotplug: Drop unfinished global notification handling routines ACPI / hotplug: Rework generic code to handle suprise removals ACPI / hotplug: Move container-specific code out of the core ACPI / hotplug: Make ACPI PCI root hotplug use common hotplug code ACPI / hotplug: Introduce common hotplug function acpi_device_hotplug() ACPI / hotplug: Do not fail bus and device checks for disabled hotplug ACPI / scan: Add acpi_device objects for all device nodes in the namespace ACPI / scan: Define non-empty device removal handler
This commit is contained in:
@@ -328,20 +328,15 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp)
|
||||
&& compare_pnp_id(pnp->id, acpi_device_hid(acpi));
|
||||
}
|
||||
|
||||
static int __init acpi_pnp_find_device(struct device *dev, acpi_handle * handle)
|
||||
static struct acpi_device * __init acpi_pnp_find_companion(struct device *dev)
|
||||
{
|
||||
struct device *adev;
|
||||
struct acpi_device *acpi;
|
||||
dev = bus_find_device(&acpi_bus_type, NULL, to_pnp_dev(dev),
|
||||
acpi_pnp_match);
|
||||
if (!dev)
|
||||
return NULL;
|
||||
|
||||
adev = bus_find_device(&acpi_bus_type, NULL,
|
||||
to_pnp_dev(dev), acpi_pnp_match);
|
||||
if (!adev)
|
||||
return -ENODEV;
|
||||
|
||||
acpi = to_acpi_device(adev);
|
||||
*handle = acpi->handle;
|
||||
put_device(adev);
|
||||
return 0;
|
||||
put_device(dev);
|
||||
return to_acpi_device(dev);
|
||||
}
|
||||
|
||||
/* complete initialization of a PNPACPI device includes having
|
||||
@@ -355,7 +350,7 @@ static bool acpi_pnp_bus_match(struct device *dev)
|
||||
static struct acpi_bus_type __initdata acpi_pnp_bus = {
|
||||
.name = "PNP",
|
||||
.match = acpi_pnp_bus_match,
|
||||
.find_device = acpi_pnp_find_device,
|
||||
.find_companion = acpi_pnp_find_companion,
|
||||
};
|
||||
|
||||
int pnpacpi_disabled __initdata;
|
||||
|
||||
Reference in New Issue
Block a user