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 @@ -148,7 +148,7 @@ static void parport_attach(struct parport *port)
148
148
return ;
149
149
}
150
150
151
- index = ida_simple_get (& pps_client_index , 0 , 0 , GFP_KERNEL );
151
+ index = ida_alloc (& pps_client_index , GFP_KERNEL );
152
152
memset (& pps_client_cb , 0 , sizeof (pps_client_cb ));
153
153
pps_client_cb .private = device ;
154
154
pps_client_cb .irq_func = parport_irq ;
@@ -188,7 +188,7 @@ static void parport_attach(struct parport *port)
188
188
err_unregister_dev :
189
189
parport_unregister_device (device -> pardev );
190
190
err_free :
191
- ida_simple_remove (& pps_client_index , index );
191
+ ida_free (& pps_client_index , index );
192
192
kfree (device );
193
193
}
194
194
@@ -208,7 +208,7 @@ static void parport_detach(struct parport *port)
208
208
pps_unregister_source (device -> pps );
209
209
parport_release (pardev );
210
210
parport_unregister_device (pardev );
211
- ida_simple_remove (& pps_client_index , device -> index );
211
+ ida_free (& pps_client_index , device -> index );
212
212
kfree (device );
213
213
}
214
214
You can’t perform that action at this time.
0 commit comments