aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2009-03-04 15:06:07 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 11:17:31 -0400
commit5880f486ef733dae820724a71e3b91241c7921bd (patch)
treee61b3da19ac5f8012f8d981dc1ebaab34477682b
parent9387edbe6045f0bde88f0f0ace51e0ead8a318fe (diff)
[SCSI] a2091: make 2 functions static
a2091_{detect,release}() can become static. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r--drivers/scsi/a2091.c6
-rw-r--r--drivers/scsi/a2091.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/scsi/a2091.c b/drivers/scsi/a2091.c
index 37dd47136fb1..4b38c4750f77 100644
--- a/drivers/scsi/a2091.c
+++ b/drivers/scsi/a2091.c
@@ -23,6 +23,8 @@
23#define DMA(ptr) ((a2091_scsiregs *)((ptr)->base)) 23#define DMA(ptr) ((a2091_scsiregs *)((ptr)->base))
24#define HDATA(ptr) ((struct WD33C93_hostdata *)((ptr)->hostdata)) 24#define HDATA(ptr) ((struct WD33C93_hostdata *)((ptr)->hostdata))
25 25
26static int a2091_release(struct Scsi_Host *instance);
27
26static irqreturn_t a2091_intr (int irq, void *_instance) 28static irqreturn_t a2091_intr (int irq, void *_instance)
27{ 29{
28 unsigned long flags; 30 unsigned long flags;
@@ -144,7 +146,7 @@ static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
144 } 146 }
145} 147}
146 148
147int __init a2091_detect(struct scsi_host_template *tpnt) 149static int __init a2091_detect(struct scsi_host_template *tpnt)
148{ 150{
149 static unsigned char called = 0; 151 static unsigned char called = 0;
150 struct Scsi_Host *instance; 152 struct Scsi_Host *instance;
@@ -233,7 +235,7 @@ static struct scsi_host_template driver_template = {
233 235
234#include "scsi_module.c" 236#include "scsi_module.c"
235 237
236int a2091_release(struct Scsi_Host *instance) 238static int a2091_release(struct Scsi_Host *instance)
237{ 239{
238#ifdef MODULE 240#ifdef MODULE
239 DMA(instance)->CNTR = 0; 241 DMA(instance)->CNTR = 0;
diff --git a/drivers/scsi/a2091.h b/drivers/scsi/a2091.h
index fe809bc88d73..252528f2672e 100644
--- a/drivers/scsi/a2091.h
+++ b/drivers/scsi/a2091.h
@@ -11,9 +11,6 @@
11 11
12#include <linux/types.h> 12#include <linux/types.h>
13 13
14int a2091_detect(struct scsi_host_template *);
15int a2091_release(struct Scsi_Host *);
16
17#ifndef CMD_PER_LUN 14#ifndef CMD_PER_LUN
18#define CMD_PER_LUN 2 15#define CMD_PER_LUN 2
19#endif 16#endif