device_broadcast_event(dev, DEV_EVENT_DOWN);
}
-int check_device_state(struct device *dev)
+int device_check_state(struct device *dev)
{
if (!dev->type->check_state)
return 0;
if (ret < 0)
return ret;
- check_device_state(dev);
+ device_check_state(dev);
return 0;
}
void device_set_present(struct device *dev, bool state);
int device_claim(struct device_user *dep);
void device_release(struct device_user *dep);
-int check_device_state(struct device *dev);
+int device_check_state(struct device *dev);
static inline void
device_free(struct device *dev)
if (!add || (tb[DEV_FORCE] && blobmsg_get_u8(tb[DEV_FORCE])))
device_set_present(dev, add);
else
- check_device_state(dev);
+ device_check_state(dev);
return 0;
}