if (!bm->present)
return 0;
- ret = claim_device(bm->dev.dev);
+ ret = device_claim(bm->dev.dev);
if (ret < 0)
goto error;
return 0;
}
-int claim_device(struct device *dev)
+int device_claim(struct device *dev)
{
int ret;
void device_remove_user(struct device_user *dep);
void device_set_present(struct device *dev, bool state);
-int claim_device(struct device *dev);
+int device_claim(struct device *dev);
void release_device(struct device *dev);
int check_device_state(struct device *dev);
if (iface->state != IFS_DOWN)
return 0;
- ret = claim_device(iface->main_dev.dev);
+ ret = device_claim(iface->main_dev.dev);
if (ret)
return ret;
return 0;
}
- ret = claim_device(vldev->dep.dev);
+ ret = device_claim(vldev->dep.dev);
if (ret)
return ret;