Commit 638e823f authored by Mike Anderson's avatar Mike Anderson Committed by James Bottomley

[PATCH] scsi host sysfs support again [2/4]

-andmike
--
Michael Anderson
andmike@us.ibm.com


DESC
This patch changes the structure of sdebug_host_info and changes the
method / order of driver model cleanup.
EDESC


 drivers/scsi/scsi_debug.c |  215 ++++++++++++++++++++++++----------------------
 drivers/scsi/scsi_debug.h |    2
 2 files changed, 115 insertions(+), 102 deletions(-)
parent 6f1b204e
This diff is collapsed.
...@@ -16,6 +16,7 @@ static int scsi_debug_device_reset(struct scsi_cmnd *); ...@@ -16,6 +16,7 @@ static int scsi_debug_device_reset(struct scsi_cmnd *);
static int scsi_debug_host_reset(struct scsi_cmnd *); static int scsi_debug_host_reset(struct scsi_cmnd *);
static int scsi_debug_proc_info(char *, char **, off_t, int, int, int); static int scsi_debug_proc_info(char *, char **, off_t, int, int, int);
static const char * scsi_debug_info(struct Scsi_Host *); static const char * scsi_debug_info(struct Scsi_Host *);
static int scsi_debug_release(struct Scsi_Host *);
/* /*
* This driver is written for the lk 2.5 series * This driver is written for the lk 2.5 series
...@@ -27,6 +28,7 @@ static const char * scsi_debug_info(struct Scsi_Host *); ...@@ -27,6 +28,7 @@ static const char * scsi_debug_info(struct Scsi_Host *);
static Scsi_Host_Template sdebug_driver_template = { static Scsi_Host_Template sdebug_driver_template = {
.proc_info = scsi_debug_proc_info, .proc_info = scsi_debug_proc_info,
.name = "SCSI DEBUG", .name = "SCSI DEBUG",
.release = scsi_debug_release,
.info = scsi_debug_info, .info = scsi_debug_info,
.slave_alloc = scsi_debug_slave_alloc, .slave_alloc = scsi_debug_slave_alloc,
.slave_configure = scsi_debug_slave_configure, .slave_configure = scsi_debug_slave_configure,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment