From 4742e82fa4ac22960c3edbfc06454ca664de9a56 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Tue, 10 May 2011 07:56:05 -0700 Subject: [PATCH] Staging: hv: storvsc_drv: Move the assignment of name to the hv_driver In preperation to eliminate the function storvsc_initialize() move the name assignment. 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 --- drivers/staging/hv/storvsc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index e342bccb2bf6..94471304ad6a 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -86,7 +86,6 @@ static int storvsc_initialize(struct hv_driver *driver) /* Make sure we are at least 2 pages since 1 page is used for control */ - driver->name = driver_name; memcpy(&driver->dev_type, &gStorVscDeviceType, sizeof(struct hv_guid)); @@ -806,6 +805,7 @@ static int storvsc_drv_init(void) STORVSC_MAX_IO_REQUESTS) return -1; + drv->name = driver_name; drv->driver.name = driver_name;