Revert "pps: remove usage of the deprecated ida_simple_xx() API"
This reverts commit f0af490213
.
This commit is contained in:
parent
498b1b9333
commit
26f3cb3d2d
1 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ static void parport_attach(struct parport *port)
|
|||
return;
|
||||
}
|
||||
|
||||
index = ida_alloc(&pps_client_index, GFP_KERNEL);
|
||||
index = ida_simple_get(&pps_client_index, 0, 0, GFP_KERNEL);
|
||||
memset(&pps_client_cb, 0, sizeof(pps_client_cb));
|
||||
pps_client_cb.private = device;
|
||||
pps_client_cb.irq_func = parport_irq;
|
||||
|
@ -184,7 +184,7 @@ err_release_dev:
|
|||
err_unregister_dev:
|
||||
parport_unregister_device(device->pardev);
|
||||
err_free:
|
||||
ida_free(&pps_client_index, index);
|
||||
ida_simple_remove(&pps_client_index, index);
|
||||
kfree(device);
|
||||
}
|
||||
|
||||
|
@ -204,7 +204,7 @@ static void parport_detach(struct parport *port)
|
|||
pps_unregister_source(device->pps);
|
||||
parport_release(pardev);
|
||||
parport_unregister_device(pardev);
|
||||
ida_free(&pps_client_index, device->index);
|
||||
ida_simple_remove(&pps_client_index, device->index);
|
||||
kfree(device);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue