Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288937
b: refs/heads/master
c: ddcbf65
h: refs/heads/master
i:
  288935: 85d7749
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent 20011e0 commit b7e48f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 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: 4b270c8b23722128adedb5694097aea367284ce1
refs/heads/master: ddcbf65e484c3473d3e808718ddb6c8166822c4c
28 changes: 12 additions & 16 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,22 +1083,6 @@ static unsigned int copy_to_bounce_buffer(struct scatterlist *orig_sgl,
return total_copied;
}


static int storvsc_remove(struct hv_device *dev)
{
struct storvsc_device *stor_device = hv_get_drvdata(dev);
struct Scsi_Host *host = stor_device->host;

scsi_remove_host(host);

scsi_host_put(host);

storvsc_dev_remove(dev);

return 0;
}


static int storvsc_get_chs(struct scsi_device *sdev, struct block_device * bdev,
sector_t capacity, int *info)
{
Expand Down Expand Up @@ -1526,6 +1510,18 @@ static int storvsc_probe(struct hv_device *device,
return ret;
}

static int storvsc_remove(struct hv_device *dev)
{
struct storvsc_device *stor_device = hv_get_drvdata(dev);
struct Scsi_Host *host = stor_device->host;

scsi_remove_host(host);
storvsc_dev_remove(dev);
scsi_host_put(host);

return 0;
}

static struct hv_driver storvsc_drv = {
.name = KBUILD_MODNAME,
.id_table = id_table,
Expand Down

0 comments on commit b7e48f1

Please sign in to comment.