]> Git Repo - linux.git/blobdiff - drivers/fpga/fpga-region.c
Merge tag 'cxl-for-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl
[linux.git] / drivers / fpga / fpga-region.c
index 485948e3c0db18049a2fed07e1218ef861063179..27ff9dea04ae3b6646530cbda4bef85f6a170419 100644 (file)
@@ -202,7 +202,7 @@ fpga_region_register_full(struct device *parent, const struct fpga_region_info *
        if (!region)
                return ERR_PTR(-ENOMEM);
 
-       id = ida_simple_get(&fpga_region_ida, 0, 0, GFP_KERNEL);
+       id = ida_alloc(&fpga_region_ida, GFP_KERNEL);
        if (id < 0) {
                ret = id;
                goto err_free;
@@ -234,7 +234,7 @@ fpga_region_register_full(struct device *parent, const struct fpga_region_info *
        return region;
 
 err_remove:
-       ida_simple_remove(&fpga_region_ida, id);
+       ida_free(&fpga_region_ida, id);
 err_free:
        kfree(region);
 
@@ -283,7 +283,7 @@ static void fpga_region_dev_release(struct device *dev)
 {
        struct fpga_region *region = to_fpga_region(dev);
 
-       ida_simple_remove(&fpga_region_ida, region->dev.id);
+       ida_free(&fpga_region_ida, region->dev.id);
        kfree(region);
 }
 
This page took 0.033359 seconds and 4 git commands to generate.