Commit a013bff7 authored by Adrian Bunk's avatar Adrian Bunk Committed by James Bottomley

[PATCH] SCSI NCR53C9x.c: some cleanups

Make two functions static

Remove the old polling esp_command() entry point.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 85146e0d
......@@ -100,7 +100,7 @@ int nesps = 0, esps_in_use = 0, esps_running = 0;
irqreturn_t esp_intr(int irq, void *dev_id, struct pt_regs *pregs);
/* Debugging routines */
struct esp_cmdstrings {
static struct esp_cmdstrings {
unchar cmdchar;
char *text;
} esp_cmd_strings[] = {
......@@ -505,7 +505,7 @@ static void esp_reset_esp(struct NCR_ESP *esp, struct ESP_regs *eregs)
}
/* This places the ESP into a known state at boot time. */
void esp_bootup_reset(struct NCR_ESP *esp, struct ESP_regs *eregs)
static void esp_bootup_reset(struct NCR_ESP *esp, struct ESP_regs *eregs)
{
volatile unchar trash;
......@@ -1271,17 +1271,6 @@ int esp_queue(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
return 0;
}
/* Only queuing supported in this ESP driver. */
int esp_command(Scsi_Cmnd *SCpnt)
{
#ifdef DEBUG_ESP
struct NCR_ESP *esp = (struct NCR_ESP *) SCpnt->device->host->hostdata;
#endif
ESPLOG(("esp%d: esp_command() called...\n", esp->esp_id));
return -1;
}
/* Dump driver state. */
static void esp_dump_cmd(Scsi_Cmnd *SCptr)
{
......
......@@ -660,7 +660,6 @@ extern void esp_initialize(struct NCR_ESP *);
extern irqreturn_t esp_intr(int, void *, struct pt_regs *);
extern const char *esp_info(struct Scsi_Host *);
extern int esp_queue(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
extern int esp_command(Scsi_Cmnd *);
extern int esp_abort(Scsi_Cmnd *);
extern int esp_reset(Scsi_Cmnd *);
extern int esp_proc_info(struct Scsi_Host *shost, char *buffer, char **start, off_t offset, int length,
......
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