Merge tag 'char-misc-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[platform/kernel/linux-starfive.git] / drivers / of / platform.c
index 6699cdb..0da8620 100644 (file)
@@ -688,7 +688,7 @@ static int of_platform_notify(struct notifier_block *nb,
                pdev_parent = of_find_device_by_node(rd->dn->parent);
                pdev = of_platform_device_create(rd->dn, NULL,
                                pdev_parent ? &pdev_parent->dev : NULL);
-               of_dev_put(pdev_parent);
+               platform_device_put(pdev_parent);
 
                if (pdev == NULL) {
                        pr_err("%s: failed to create for '%pOF'\n",
@@ -713,7 +713,7 @@ static int of_platform_notify(struct notifier_block *nb,
                of_platform_device_destroy(&pdev->dev, &children_left);
 
                /* and put the reference of the find */
-               of_dev_put(pdev);
+               platform_device_put(pdev);
                break;
        }