Staging: hv: storvsc: Eliminate the usage of ext field in struct hv_device
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 13 Sep 2011 17:59:48 +0000 (10:59 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Sep 2011 18:06:03 +0000 (20:06 +0200)
commitcd654ea1cc72aed95e871971d87c4a988924fdda
treef618c727695df392165a5f795fd283eb3bf13f01
parentf810d592a29314ade8cce29f8dac858c90a50409
Staging: hv: storvsc: Eliminate the usage of ext field in struct hv_device

Now, eliminate the usage of ext field in struct  hv_device for storvsc driver.
We do this by registering pointer to struct storvsc_device as the driver
specific data and eliminating the current usage of driver specific data to
save and retrieve the pointer to struct Scsi_Host.
Additionally, all access to the driver specific data is through
the vmbus wrapper functions. Note that function to allocate the host
gives us a reference on the host object.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/storvsc_drv.c