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 @@ -355,7 +355,7 @@ static int ssi_add_controller(struct hsi_controller *ssi,
355
355
if (!omap_ssi )
356
356
return - ENOMEM ;
357
357
358
- err = ida_simple_get (& platform_omap_ssi_ida , 0 , 0 , GFP_KERNEL );
358
+ err = ida_alloc (& platform_omap_ssi_ida , GFP_KERNEL );
359
359
if (err < 0 )
360
360
return err ;
361
361
ssi -> id = err ;
@@ -417,7 +417,7 @@ static int ssi_add_controller(struct hsi_controller *ssi,
417
417
return 0 ;
418
418
419
419
out_err :
420
- ida_simple_remove (& platform_omap_ssi_ida , ssi -> id );
420
+ ida_free (& platform_omap_ssi_ida , ssi -> id );
421
421
return err ;
422
422
}
423
423
@@ -451,7 +451,7 @@ static void ssi_remove_controller(struct hsi_controller *ssi)
451
451
tasklet_kill (& omap_ssi -> gdd_tasklet );
452
452
hsi_unregister_controller (ssi );
453
453
clk_notifier_unregister (omap_ssi -> fck , & omap_ssi -> fck_nb );
454
- ida_simple_remove (& platform_omap_ssi_ida , id );
454
+ ida_free (& platform_omap_ssi_ida , id );
455
455
}
456
456
457
457
static inline int ssi_of_get_available_ports_count (const struct device_node * np )
You can’t perform that action at this time.
0 commit comments