avl_init(&devices, avl_strcmp, false, NULL);
}
avl_init(&devices, avl_strcmp, false, NULL);
}
static const struct device_type simple_type = {
.name = "Device",
.check_state = system_if_check,
static const struct device_type simple_type = {
.name = "Device",
.check_state = system_if_check,
if (list_empty(&dev->users)) {
/* all references have gone away, remove this device */
if (list_empty(&dev->users)) {
/* all references have gone away, remove this device */