Skip to contentSkip to conversation

ipmi: Handle device properties with software node API

PATCH In review Heikki Krogerus 2 participants 2 messages Mar 4, 2021 – Mar 5, 2021 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 drivers/char/ipmi/ipmi_plat_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/ipmi/ipmi_plat_data.c +1 -1
index 28471ff2a3a3e..747b51ae01a80 100644
@@ -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);
Signature · 1 line
2.30.1
#1 lore raw
Quoted 3 lines · Heikki Krogerus

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().

Ok, this has been queued for next release.

Thanks,

-corey

Quoted 22 lines
---
 drivers/char/ipmi/ipmi_plat_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/ipmi/ipmi_plat_data.c +1 -1
index 28471ff2a3a3e..747b51ae01a80 100644
@@ -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);
Signature · 1 line
2.30.1