File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ static int dw_xdata_pcie_probe(struct pci_dev *pdev,
333
333
334
334
dw -> pdev = pdev ;
335
335
336
- id = ida_simple_get (& xdata_ida , 0 , 0 , GFP_KERNEL );
336
+ id = ida_alloc (& xdata_ida , GFP_KERNEL );
337
337
if (id < 0 ) {
338
338
dev_err (dev , "xData: unable to get id\n" );
339
339
return id ;
@@ -377,7 +377,7 @@ static int dw_xdata_pcie_probe(struct pci_dev *pdev,
377
377
kfree (dw -> misc_dev .name );
378
378
379
379
err_ida_remove :
380
- ida_simple_remove (& xdata_ida , id );
380
+ ida_free (& xdata_ida , id );
381
381
382
382
return err ;
383
383
}
@@ -396,7 +396,7 @@ static void dw_xdata_pcie_remove(struct pci_dev *pdev)
396
396
dw_xdata_stop (dw );
397
397
misc_deregister (& dw -> misc_dev );
398
398
kfree (dw -> misc_dev .name );
399
- ida_simple_remove (& xdata_ida , id );
399
+ ida_free (& xdata_ida , id );
400
400
}
401
401
402
402
static const struct pci_device_id dw_xdata_pcie_id_table [] = {
You can’t perform that action at this time.
0 commit comments