}
list_del(&bm->list);
- remove_device_user(&bm->dev);
+ device_remove_user(&bm->dev);
free(bm);
}
}
}
-void remove_device_user(struct device_user *dep)
+void device_remove_user(struct device_user *dep)
{
struct device *dev = dep->dev;
void cleanup_device(struct device *iface);
struct device *get_device(const char *name, bool create);
void add_device_user(struct device_user *dep, struct device *iface);
-void remove_device_user(struct device_user *dep);
+void device_remove_user(struct device_user *dep);
void set_device_present(struct device *dev, bool state);
int claim_device(struct device *dev);
return;
}
- remove_device_user(&iface->main_dev);
+ device_remove_user(&iface->main_dev);
}
int
struct vlan_device *vldev;
vldev = container_of(iface, struct vlan_device, dev);
- remove_device_user(&vldev->dep);
+ device_remove_user(&vldev->dep);
cleanup_device(&vldev->dev);
free(vldev);
}