[PATCH] Staging: hv: storvsc: advertise hv_storvsc instead ofstorvsc as driver name

From: Olaf Hering
Date: Fri Sep 09 2011 - 08:45:46 EST



Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -42,6 +42,8 @@

#include "hyperv.h"

+#define MODULE_NAME "hv_storvsc"
+
#define STORVSC_RING_BUFFER_SIZE (20*PAGE_SIZE)
static int storvsc_ringbuffer_size = STORVSC_RING_BUFFER_SIZE;

@@ -1164,7 +1166,7 @@ static void storvsc_command_completion(s
if (scmnd->result) {
if (scsi_normalize_sense(scmnd->sense_buffer,
SCSI_SENSE_BUFFERSIZE, &sense_hdr))
- scsi_print_sense_hdr("storvsc", &sense_hdr);
+ scsi_print_sense_hdr(MODULE_NAME, &sense_hdr);
}

scsi_set_resid(scmnd,
@@ -1333,8 +1335,8 @@ static DEF_SCSI_QCMD(storvsc_queuecomman
/* Scsi driver */
static struct scsi_host_template scsi_driver = {
.module = THIS_MODULE,
- .name = "hv_storvsc",
- .proc_name = "hv_storvsc",
+ .name = MODULE_NAME,
+ .proc_name = MODULE_NAME,
.bios_param = storvsc_get_chs,
.queuecommand = storvsc_queuecommand,
.eh_host_reset_handler = storvsc_host_reset_handler,
@@ -1468,7 +1470,7 @@ err_out:
/* The one and only one */

static struct hv_driver storvsc_drv = {
- .name = "storvsc",
+ .name = MODULE_NAME,
.id_table = id_table,
.probe = storvsc_probe,
.remove = storvsc_remove,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/