Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipmi: 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: 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>

authored by

Heikki Krogerus and committed by
Corey Minyard
c053c4eb dcd10526

+1 -1
+1 -1
drivers/char/ipmi/ipmi_plat_data.c
··· 102 102 goto err; 103 103 } 104 104 add_properties: 105 - rv = platform_device_add_properties(pdev, pr); 105 + rv = device_create_managed_software_node(&pdev->dev, pr, NULL); 106 106 if (rv) { 107 107 dev_err(&pdev->dev, 108 108 "Unable to add hard-code properties: %d\n", rv);