Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249243
b: refs/heads/master
c: 786930b
h: refs/heads/master
i:
  249241: 7c35fdb
  249239: 7530253
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent f77ac6b commit 9144ce5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 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: 0724e5fd77b44338fb12af35f0577bd4142903e8
refs/heads/master: 786930b3c570eeb04382bca18b64e9e25791e4fc
14 changes: 3 additions & 11 deletions trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,8 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req,
{
struct block_device_context *blkdev = blkvsc_req->dev;
struct hv_device *device_ctx = blkdev->device_ctx;
struct hv_driver *drv =
drv_to_hv_drv(device_ctx->device.driver);
struct storvsc_driver_object *storvsc_drv_obj =
drv->priv;
drv_to_stordrv(device_ctx->device.driver);
struct hv_storvsc_request *storvsc_req;
struct vmscsi_request *vm_srb;
int ret;
Expand Down Expand Up @@ -541,10 +539,8 @@ static int blkvsc_cancel_pending_reqs(struct block_device_context *blkdev)
*/
static int blkvsc_remove(struct device *device)
{
struct hv_driver *drv =
drv_to_hv_drv(device->driver);
struct storvsc_driver_object *storvsc_drv_obj =
drv->priv;
drv_to_stordrv(device->driver);
struct hv_device *device_obj = device_to_hv_device(device);
struct block_device_context *blkdev = dev_get_drvdata(device);
unsigned long flags;
Expand Down Expand Up @@ -881,8 +877,6 @@ static int blkvsc_drv_init(void)

storvsc_drv_obj->ring_buffer_size = blkvsc_ringbuffer_size;

drv->priv = storvsc_drv_obj;

/* Callback to client driver to complete the initialization */
blk_vsc_initialize(&storvsc_drv_obj->base);

Expand Down Expand Up @@ -945,10 +939,8 @@ static void blkvsc_drv_exit(void)
*/
static int blkvsc_probe(struct device *device)
{
struct hv_driver *drv =
drv_to_hv_drv(device->driver);
struct storvsc_driver_object *storvsc_drv_obj =
drv->priv;
drv_to_stordrv(device->driver);
struct hv_device *device_obj = device_to_hv_device(device);

struct block_device_context *blkdev = NULL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/storvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static int stor_vsc_connect_to_vsp(struct hv_device *device)
struct storvsc_driver_object *stor_driver;
int ret;

stor_driver = (struct storvsc_driver_object *)device->drv;
stor_driver = drv_to_stordrv(device->device.driver);
memset(&props, 0, sizeof(struct vmstorage_channel_properties));

/* Open the channel */
Expand Down

0 comments on commit 9144ce5

Please sign in to comment.