mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
driver core / ACPI: Represent ACPI companions using fwnode_handle
Now that we have struct fwnode_handle, we can use that to point to ACPI companions from struct device objects instead of pointing to struct acpi_device directly. There are two benefits from that. First, the somewhat ugly and hackish struct acpi_dev_node can be dropped and, second, the same struct fwnode_handle pointer can be used in the future to point to other (non-ACPI) firmware device node types. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Acked-by: Grant Likely <[email protected]>
This commit is contained in:
parent
06e5801b8c
commit
ce793486e2
12 changed files with 44 additions and 31 deletions
|
|
@ -454,7 +454,7 @@ struct platform_device *platform_device_register_full(
|
|||
goto err_alloc;
|
||||
|
||||
pdev->dev.parent = pdevinfo->parent;
|
||||
ACPI_COMPANION_SET(&pdev->dev, pdevinfo->acpi_node.companion);
|
||||
pdev->dev.fwnode = pdevinfo->fwnode;
|
||||
|
||||
if (pdevinfo->dma_mask) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue