From: K. Y. Srinivasan Date: Tue, 10 May 2011 14:54:40 +0000 (-0700) Subject: Staging: hv: storvsc_drv: Move module parameters to earlier in the file X-Git-Tag: v3.0-rc1~336^2~380 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3d598ce1c55358ca2de41ce14d4fba82dfaf0817;p=karo-tx-linux.git Staging: hv: storvsc_drv: Move module parameters to earlier in the file Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 6bb35c4cabd1..0d9ce56fa3df 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -42,6 +42,9 @@ static int storvsc_ringbuffer_size = STORVSC_RING_BUFFER_SIZE; +module_param(storvsc_ringbuffer_size, int, S_IRUGO); +MODULE_PARM_DESC(storvsc_ringbuffer_size, "Ring buffer size (bytes)"); + static const char *driver_name = "storvsc"; /* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */ @@ -540,9 +543,6 @@ static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd) static int storvsc_probe(struct hv_device *dev); static int storvsc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd); -module_param(storvsc_ringbuffer_size, int, S_IRUGO); -MODULE_PARM_DESC(storvsc_ringbuffer_size, "Ring buffer size (bytes)"); - /* The one and only one */ static struct storvsc_driver g_storvsc_drv;