*/
int vmbus_child_dev_add(struct hv_device *child_dev)
{
- return vmbus_child_device_register(vmbus_device, child_dev);
+ return vmbus_child_device_register(child_dev);
}
/*
/*
* vmbus_child_device_register - Register the child device on the specified bus
*/
-int vmbus_child_device_register(struct hv_device *root_device_obj,
- struct hv_device *child_device_obj)
+int vmbus_child_device_register(struct hv_device *child_device_obj)
{
int ret = 0;
/* The new device belongs to this bus */
child_device_obj->device.bus = &vmbus_drv.bus; /* device->dev.bus; */
- child_device_obj->device.parent = &root_device_obj->device;
+ child_device_obj->device.parent = &vmbus_device->device;
child_device_obj->device.release = vmbus_device_release;
/*
struct vmbus_channel *channel);
int vmbus_child_dev_add(struct hv_device *device);
-int vmbus_child_device_register(struct hv_device *root_device_obj,
- struct hv_device *child_device_obj);
+int vmbus_child_device_register(struct hv_device *child_device_obj);
void vmbus_child_device_unregister(struct hv_device *device_obj);
/* static void */