diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 2d444b1ccd33..7c908141cc8a 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -79,11 +79,10 @@ static void tcm_loop_release_cmd(struct se_cmd *se_cmd) | |||
79 | kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); | 79 | kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); |
80 | } | 80 | } |
81 | 81 | ||
82 | static int tcm_loop_proc_info(struct Scsi_Host *host, char *buffer, | 82 | static int tcm_loop_show_info(struct seq_file *m, struct Scsi_Host *host) |
83 | char **start, off_t offset, | ||
84 | int length, int inout) | ||
85 | { | 83 | { |
86 | return sprintf(buffer, "tcm_loop_proc_info()\n"); | 84 | seq_printf(m, "tcm_loop_proc_info()\n"); |
85 | return 0; | ||
87 | } | 86 | } |
88 | 87 | ||
89 | static int tcm_loop_driver_probe(struct device *); | 88 | static int tcm_loop_driver_probe(struct device *); |
@@ -336,7 +335,7 @@ static int tcm_loop_slave_configure(struct scsi_device *sd) | |||
336 | } | 335 | } |
337 | 336 | ||
338 | static struct scsi_host_template tcm_loop_driver_template = { | 337 | static struct scsi_host_template tcm_loop_driver_template = { |
339 | .proc_info = tcm_loop_proc_info, | 338 | .show_info = tcm_loop_show_info, |
340 | .proc_name = "tcm_loopback", | 339 | .proc_name = "tcm_loopback", |
341 | .name = "TCM_Loopback", | 340 | .name = "TCM_Loopback", |
342 | .queuecommand = tcm_loop_queuecommand, | 341 | .queuecommand = tcm_loop_queuecommand, |