- device_probe_clear(device, pnum);
-}
-
-void device_destroy(struct device *device)
-{
- unsigned int pnum;
-
- /*
- * TODO: Plugin-specific destroy call, need to decrease refcount
- * in plugin.
- */
-
- devices = g_slist_remove(devices, device);
- if (device->probes) {
- for (pnum = 1; pnum <= g_slist_length(device->probes); pnum++)
- device_probe_clear(device, pnum);
- g_slist_free(device->probes);
- }
- g_free(device);