Commit 55fc610c authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Ard Biesheuvel

efi/apple-properties: Handle device properties with software node API

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: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 942859d9
...@@ -157,7 +157,7 @@ static int __init unmarshal_devices(struct properties_header *properties) ...@@ -157,7 +157,7 @@ static int __init unmarshal_devices(struct properties_header *properties)
if (!entry[0].name) if (!entry[0].name)
goto skip_device; goto skip_device;
ret = device_add_properties(dev, entry); /* makes deep copy */ ret = device_create_managed_software_node(dev, entry, NULL);
if (ret) if (ret)
dev_err(dev, "error %d assigning properties\n", ret); dev_err(dev, "error %d assigning properties\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment