diff options
| author | Heikki Krogerus <[email protected]> | 2021-08-17 10:24:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-08-18 14:08:11 +0000 |
| commit | bd1e336aa8535a99f339e2d66a611984262221ce (patch) | |
| tree | a0f10ab2a0133da2a67b7e77c5f181a235e5a38a /drivers/base/platform.c | |
| parent | ARM: tegra: paz00: Handle device properties with software node API (diff) | |
| download | kernel-bd1e336aa8535a99f339e2d66a611984262221ce.tar.gz kernel-bd1e336aa8535a99f339e2d66a611984262221ce.zip | |
driver core: platform: Remove platform_device_add_properties()
There are no more users for it. The last place where it's
called is in platform_device_register_full(). Replacing that
call with device_create_managed_software_node() and
removing the function.
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Signed-off-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/base/platform.c')
| -rw-r--r-- | drivers/base/platform.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a94b7f454881..652531f67135 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -642,22 +642,6 @@ int platform_device_add_data(struct platform_device *pdev, const void *data, EXPORT_SYMBOL_GPL(platform_device_add_data); /** - * platform_device_add_properties - add built-in properties to a platform device - * @pdev: platform device to add properties to - * @properties: null terminated array of properties to add - * - * The function will take deep copy of @properties and attach the copy to the - * platform device. The memory associated with properties will be freed when the - * platform device is released. - */ -int platform_device_add_properties(struct platform_device *pdev, - const struct property_entry *properties) -{ - return device_add_properties(&pdev->dev, properties); -} -EXPORT_SYMBOL_GPL(platform_device_add_properties); - -/** * platform_device_add - add a platform device to device hierarchy * @pdev: platform device we're adding * @@ -842,8 +826,8 @@ struct platform_device *platform_device_register_full( goto err; if (pdevinfo->properties) { - ret = platform_device_add_properties(pdev, - pdevinfo->properties); + ret = device_create_managed_software_node(&pdev->dev, + pdevinfo->properties, NULL); if (ret) goto err; } |
