diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-05-10 07:55:55 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-11 13:49:22 -0700 |
commit | 3e3264996f313036df518560b58f909d269ff069 (patch) | |
tree | 7cf6ab8975299347de50a83c6d2b7169d0e623c2 /drivers/staging/hv/blkvsc_drv.c | |
parent | c1c809b5d9e18f38d083393976e448f3beaaa421 (diff) | |
download | op-kernel-dev-3e3264996f313036df518560b58f909d269ff069.zip op-kernel-dev-3e3264996f313036df518560b58f909d269ff069.tar.gz |
Staging: hv: Move the sector size check into blkvsc_drv_init
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/blkvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/blkvsc_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index adc12ad..6b665d2 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -822,6 +822,8 @@ static int blkvsc_drv_init(void) struct hv_driver *drv = &blkvsc_drv.base; int ret; + BUILD_BUG_ON(sizeof(sector_t) != 8); + storvsc_drv->ring_buffer_size = blkvsc_ringbuffer_size; memcpy(&drv->dev_type, &dev_type, sizeof(struct hv_guid)); @@ -1046,8 +1048,6 @@ static int __init blkvsc_init(void) { int ret; - BUILD_BUG_ON(sizeof(sector_t) != 8); - ret = blkvsc_drv_init(); return ret; |