ipmi: Handle device properties with software node API
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 4 Mar 2021 09:03:12 +0000 (12:03 +0300)
committerCorey Minyard <cminyard@mvista.com>
Thu, 11 Mar 2021 01:00:02 +0000 (19:00 -0600)
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>
Message-Id: <20210304090312.26827-1-heikki.krogerus@linux.intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_plat_data.c

index 28471ff..747b51a 100644 (file)
@@ -102,7 +102,7 @@ struct platform_device *ipmi_platform_add(const char *name, unsigned int inst,
                goto err;
        }
  add_properties:
-       rv = platform_device_add_properties(pdev, pr);
+       rv = device_create_managed_software_node(&pdev->dev, pr, NULL);
        if (rv) {
                dev_err(&pdev->dev,
                        "Unable to add hard-code properties: %d\n", rv);