efi/apple-properties: Handle device properties with software node API
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 4 Mar 2021 08:28:37 +0000 (11:28 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 22 May 2021 12:06:59 +0000 (14:06 +0200)
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>
drivers/firmware/efi/apple-properties.c

index e192648..4c3201e 100644 (file)
@@ -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);