Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228257
b: refs/heads/master
c: 98293a2
h: refs/heads/master
i:
  228255: df1db47
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Dec 2, 2010
1 parent 3add25a commit 13c9afa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d6e882bada0ca7828347647c5b1091bf5f18fee
refs/heads/master: 98293a279cc0ff085ead7c032c6b8cb7b6ad7e88
4 changes: 1 addition & 3 deletions trunk/drivers/staging/hv/vmbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ static struct hv_device *gDevice; /* vmbus root device */
*/
int VmbusChildDeviceAdd(struct hv_device *ChildDevice)
{
struct vmbus_driver *vmbusDriver = (struct vmbus_driver *)gDriver;

return vmbusDriver->OnChildDeviceAdd(gDevice, ChildDevice);
return vmbus_child_device_register(gDevice, ChildDevice);
}

/*
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ struct vmbus_driver {
/* !! Must be the 1st field !! */
/* FIXME if ^, then someone is doing somthing stupid */
struct hv_driver Base;

/* Set by the caller */
int (*OnChildDeviceAdd)(struct hv_device *RootDevice,
struct hv_device *ChildDevice);
};

int VmbusInitialize(struct hv_driver *drv);
Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id);
static void vmbus_device_release(struct device *device);
static void vmbus_bus_release(struct device *device);

static int vmbus_child_device_register(struct hv_device *root_device_obj,
struct hv_device *child_device_obj);
static ssize_t vmbus_show_device_attr(struct device *dev,
struct device_attribute *dev_attr,
char *buf);
Expand Down Expand Up @@ -292,12 +290,6 @@ static int vmbus_bus_init(int (*drv_init)(struct hv_driver *drv))
int ret;
unsigned int vector;

/*
* Set this up to allow lower layer to callback to add/remove child
* devices on the bus
*/
vmbus_drv_obj->OnChildDeviceAdd = vmbus_child_device_register;

/* Call to bus driver to initialize */
ret = drv_init(&vmbus_drv_obj->Base);
if (ret != 0) {
Expand Down Expand Up @@ -530,8 +522,8 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
/*
* vmbus_child_device_register - Register the child device on the specified bus
*/
static 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 *root_device_obj,
struct hv_device *child_device_obj)
{
int ret = 0;
struct vm_device *root_device_ctx =
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/vmbus_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *deviceType,
struct vmbus_channel *channel);

int VmbusChildDeviceAdd(struct hv_device *Device);

int vmbus_child_device_register(struct hv_device *root_device_obj,
struct hv_device *child_device_obj);
void vmbus_child_device_unregister(struct hv_device *device_obj);

/* static void */
Expand Down

0 comments on commit 13c9afa

Please sign in to comment.