Message ID | 4756666.GXAFRqVoOG@kreacher |
---|---|
State | New |
Headers | show |
Series | [v1] ACPI: property: Use acpi_dev_parent() | expand |
Index: linux-pm/drivers/acpi/property.c =================================================================== --- linux-pm.orig/drivers/acpi/property.c +++ linux-pm/drivers/acpi/property.c @@ -1269,10 +1269,11 @@ acpi_node_get_parent(const struct fwnode return to_acpi_data_node(fwnode)->parent; } if (is_acpi_device_node(fwnode)) { - struct device *dev = to_acpi_device_node(fwnode)->dev.parent; + struct acpi_device *parent; - if (dev) - return acpi_fwnode_handle(to_acpi_device(dev)); + parent = acpi_dev_parent(to_acpi_device_node(fwnode)); + if (parent) + return acpi_fwnode_handle(parent); } return NULL;