Skip to content

Commit

Permalink
efi/apple-properties: Handle device properties with software node API
Browse files Browse the repository at this point in the history
The old device property API is going to be removed.
Replacing the device_add_properties() call with the software
node API equivalent, device_create_managed_software_node().

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
  • Loading branch information
Heikki Krogerus authored and Ard Biesheuvel committed May 22, 2021
1 parent 942859d commit 55fc610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/efi/apple-properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int __init unmarshal_devices(struct properties_header *properties)
if (!entry[0].name)
goto skip_device;

ret = device_add_properties(dev, entry); /* makes deep copy */
ret = device_create_managed_software_node(dev, entry, NULL);
if (ret)
dev_err(dev, "error %d assigning properties\n", ret);

Expand Down

0 comments on commit 55fc610

Please sign in to comment.