summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2021-03-04 10:03:12 +0100
committerCorey Minyard <cminyard@mvista.com>2021-03-11 02:00:02 +0100
commitc053c4eb5a0f010fcd301cf764b59cb783b4979b (patch)
tree38b28e8d894e7e0dc47f2f4d08ea56f4b0068dbc /drivers/char
parentipmi:ssif: make ssif_i2c_send() void (diff)
downloadlinux-c053c4eb5a0f010fcd301cf764b59cb783b4979b.tar.xz
linux-c053c4eb5a0f010fcd301cf764b59cb783b4979b.zip
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ipmi/ipmi_plat_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_plat_data.c b/drivers/char/ipmi/ipmi_plat_data.c
index 28471ff2a3a3..747b51ae01a8 100644
--- a/drivers/char/ipmi/ipmi_plat_data.c
+++ b/drivers/char/ipmi/ipmi_plat_data.c
@@ -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);