Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249361
b: refs/heads/master
c: ca6887f
h: refs/heads/master
i:
  249359: dcde1aa
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 3, 2011
1 parent 5bd684f commit 32a3bac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: b858e74503e6489190aafb84d16ef75ba267eef2
refs/heads/master: ca6887fb830371d050227f2295dba483f6a6d26b
6 changes: 3 additions & 3 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,9 @@ static int blkvsc_remove(struct hv_device *dev)

}

static void blkvsc_shutdown(struct device *device)
static void blkvsc_shutdown(struct hv_device *dev)
{
struct block_device_context *blkdev = dev_get_drvdata(device);
struct block_device_context *blkdev = dev_get_drvdata(&dev->device);
unsigned long flags;

if (!blkdev)
Expand Down Expand Up @@ -883,7 +883,7 @@ static int blkvsc_drv_init(void)

drv->probe = blkvsc_probe;
drv->remove = blkvsc_remove;
drv->driver.shutdown = blkvsc_shutdown;
drv->shutdown = blkvsc_shutdown;

/* The driver belongs to vmbus */
ret = vmbus_child_driver_register(&drv->driver);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ static int vmbus_remove(struct device *child_device)
static void vmbus_shutdown(struct device *child_device)
{
struct hv_driver *drv;
struct hv_device *dev = device_to_hv_device(child_device);


/* The device may not be attached yet */
Expand All @@ -375,9 +376,8 @@ static void vmbus_shutdown(struct device *child_device)

drv = drv_to_hv_drv(child_device->driver);

/* Let the specific open-source driver handles the removal if it can */
if (drv->driver.shutdown)
drv->driver.shutdown(child_device);
if (drv->shutdown)
drv->shutdown(dev);

return;
}
Expand Down

0 comments on commit 32a3bac

Please sign in to comment.