aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-03-10 17:07:21 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 15:29:59 -0400
commit3ca07cb06d3176b3eb1bfd49fdc8c8fbe649fa5b (patch)
tree21f93383add1dc6eabc8ec6d7288333b6a109ad5
parentece0e32fd2870f7d2b2f28a99f8e63bef3c01686 (diff)
Staging: hv: Change the signature for vmbus_child_device_register()
In preparation for getting rid of the vmbus_child_dev_add() function, modify the signature of vmbus_child_device_register(). Note that the root device is a global variable. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com> Signed-off-by: Abhishek Kane <v-abkane@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/vmbus_drv.c7
-rw-r--r--drivers/staging/hv/vmbus_private.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c
index e078c5944d51..0b91edad6e11 100644
--- a/drivers/staging/hv/vmbus_drv.c
+++ b/drivers/staging/hv/vmbus_drv.c
@@ -144,7 +144,7 @@ static struct hv_device *vmbus_device; /* vmbus root device */
144 */ 144 */
145int vmbus_child_dev_add(struct hv_device *child_dev) 145int vmbus_child_dev_add(struct hv_device *child_dev)
146{ 146{
147 return vmbus_child_device_register(vmbus_device, child_dev); 147 return vmbus_child_device_register(child_dev);
148} 148}
149 149
150/* 150/*
@@ -664,8 +664,7 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
664/* 664/*
665 * vmbus_child_device_register - Register the child device on the specified bus 665 * vmbus_child_device_register - Register the child device on the specified bus
666 */ 666 */
667int vmbus_child_device_register(struct hv_device *root_device_obj, 667int vmbus_child_device_register(struct hv_device *child_device_obj)
668 struct hv_device *child_device_obj)
669{ 668{
670 int ret = 0; 669 int ret = 0;
671 670
@@ -680,7 +679,7 @@ int vmbus_child_device_register(struct hv_device *root_device_obj,
680 679
681 /* The new device belongs to this bus */ 680 /* The new device belongs to this bus */
682 child_device_obj->device.bus = &vmbus_drv.bus; /* device->dev.bus; */ 681 child_device_obj->device.bus = &vmbus_drv.bus; /* device->dev.bus; */
683 child_device_obj->device.parent = &root_device_obj->device; 682 child_device_obj->device.parent = &vmbus_device->device;
684 child_device_obj->device.release = vmbus_device_release; 683 child_device_obj->device.release = vmbus_device_release;
685 684
686 /* 685 /*
diff --git a/drivers/staging/hv/vmbus_private.h b/drivers/staging/hv/vmbus_private.h
index 1b88b6f9be08..c176773440d2 100644
--- a/drivers/staging/hv/vmbus_private.h
+++ b/drivers/staging/hv/vmbus_private.h
@@ -108,8 +108,7 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
108 struct vmbus_channel *channel); 108 struct vmbus_channel *channel);
109 109
110int vmbus_child_dev_add(struct hv_device *device); 110int vmbus_child_dev_add(struct hv_device *device);
111int vmbus_child_device_register(struct hv_device *root_device_obj, 111int vmbus_child_device_register(struct hv_device *child_device_obj);
112 struct hv_device *child_device_obj);
113void vmbus_child_device_unregister(struct hv_device *device_obj); 112void vmbus_child_device_unregister(struct hv_device *device_obj);
114 113
115/* static void */ 114/* static void */