Merge tag 'asoc-fix-v6.9-merge-window' of https://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / phy / phy-core.c
index 96a0b1e..d9be6a4 100644 (file)
@@ -959,7 +959,7 @@ struct phy *phy_create(struct device *dev, struct device_node *node,
        if (!phy)
                return ERR_PTR(-ENOMEM);
 
-       id = ida_simple_get(&phy_ida, 0, 0, GFP_KERNEL);
+       id = ida_alloc(&phy_ida, GFP_KERNEL);
        if (id < 0) {
                dev_err(dev, "unable to get id\n");
                ret = id;
@@ -1232,7 +1232,7 @@ static void phy_release(struct device *dev)
        dev_vdbg(dev, "releasing '%s'\n", dev_name(dev));
        debugfs_remove_recursive(phy->debugfs);
        regulator_put(phy->pwr);
-       ida_simple_remove(&phy_ida, phy->id);
+       ida_free(&phy_ida, phy->id);
        kfree(phy);
 }