mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
ACPI: platform: Use PLATFORM_DEVID_NONE in acpi_create_platform_device()
Instead of hardcoding the value for the id, use PLATFORM_DEVID_NONE. Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
1902d158bc
commit
2814108cbf
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev,
|
|||
pdevinfo.parent = adev->parent ?
|
||||
acpi_get_first_physical_node(adev->parent) : NULL;
|
||||
pdevinfo.name = dev_name(&adev->dev);
|
||||
pdevinfo.id = -1;
|
||||
pdevinfo.id = PLATFORM_DEVID_NONE;
|
||||
pdevinfo.res = resources;
|
||||
pdevinfo.num_res = count;
|
||||
pdevinfo.fwnode = acpi_fwnode_handle(adev);
|
||||
|
|
Loading…
Add table
Reference in a new issue