aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-21 18:02:55 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:59 -0500
commit68d579fb93df0db0442f90106b19a8dc701ecef1 (patch)
tree6ddcdc7056acc0cb2c9c8f4dbeffb3912edace3d /drivers/net/chelsio
parent2450022afa9f140464c934ecb28c45583335672a (diff)
drivers/net/chelsio/: #if 0 unused functions
This patch #if 0's the following unused functions: - espi.c:t1_espi_set_misc_ctrl() - sge.c:t1_sched_set_max_avail_bytes() - sge.c:t1_sched_set_drain_bits_per_us() Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/chelsio')
-rw-r--r--drivers/net/chelsio/espi.c2
-rw-r--r--drivers/net/chelsio/espi.h1
-rw-r--r--drivers/net/chelsio/sge.c4
-rw-r--r--drivers/net/chelsio/sge.h2
4 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/chelsio/espi.c b/drivers/net/chelsio/espi.c
index d7c5406a6c3f..1e0749e000b0 100644
--- a/drivers/net/chelsio/espi.c
+++ b/drivers/net/chelsio/espi.c
@@ -297,6 +297,7 @@ struct peespi *t1_espi_create(adapter_t *adapter)
297 return espi; 297 return espi;
298} 298}
299 299
300#if 0
300void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val) 301void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val)
301{ 302{
302 struct peespi *espi = adapter->espi; 303 struct peespi *espi = adapter->espi;
@@ -309,6 +310,7 @@ void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val)
309 writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL); 310 writel(espi->misc_ctrl, adapter->regs + A_ESPI_MISC_CONTROL);
310 spin_unlock(&espi->lock); 311 spin_unlock(&espi->lock);
311} 312}
313#endif /* 0 */
312 314
313u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait) 315u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait)
314{ 316{
diff --git a/drivers/net/chelsio/espi.h b/drivers/net/chelsio/espi.h
index 84f2c98bc4cc..5694aad4fbc0 100644
--- a/drivers/net/chelsio/espi.h
+++ b/drivers/net/chelsio/espi.h
@@ -62,7 +62,6 @@ void t1_espi_intr_disable(struct peespi *);
62int t1_espi_intr_handler(struct peespi *); 62int t1_espi_intr_handler(struct peespi *);
63const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi); 63const struct espi_intr_counts *t1_espi_get_intr_counts(struct peespi *espi);
64 64
65void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val);
66u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait); 65u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait);
67int t1_espi_get_mon_t204(adapter_t *, u32 *, u8); 66int t1_espi_get_mon_t204(adapter_t *, u32 *, u8);
68 67
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c
index b301c0428ae0..8a7efd38e95b 100644
--- a/drivers/net/chelsio/sge.c
+++ b/drivers/net/chelsio/sge.c
@@ -330,6 +330,8 @@ unsigned int t1_sched_update_parms(struct sge *sge, unsigned int port,
330 return max_avail_segs * (p->mtu - 40); 330 return max_avail_segs * (p->mtu - 40);
331} 331}
332 332
333#if 0
334
333/* 335/*
334 * t1_sched_max_avail_bytes() tells the scheduler the maximum amount of 336 * t1_sched_max_avail_bytes() tells the scheduler the maximum amount of
335 * data that can be pushed per port. 337 * data that can be pushed per port.
@@ -357,6 +359,8 @@ void t1_sched_set_drain_bits_per_us(struct sge *sge, unsigned int port,
357 t1_sched_update_parms(sge, port, 0, 0); 359 t1_sched_update_parms(sge, port, 0, 0);
358} 360}
359 361
362#endif /* 0 */
363
360 364
361/* 365/*
362 * get_clock() implements a ns clock (see ktime_get) 366 * get_clock() implements a ns clock (see ktime_get)
diff --git a/drivers/net/chelsio/sge.h b/drivers/net/chelsio/sge.h
index cced9dff91c5..8c9405123992 100644
--- a/drivers/net/chelsio/sge.h
+++ b/drivers/net/chelsio/sge.h
@@ -88,8 +88,6 @@ void t1_sge_intr_disable(struct sge *);
88void t1_sge_intr_clear(struct sge *); 88void t1_sge_intr_clear(struct sge *);
89const struct sge_intr_counts *t1_sge_get_intr_counts(const struct sge *sge); 89const struct sge_intr_counts *t1_sge_get_intr_counts(const struct sge *sge);
90void t1_sge_get_port_stats(const struct sge *sge, int port, struct sge_port_stats *); 90void t1_sge_get_port_stats(const struct sge *sge, int port, struct sge_port_stats *);
91void t1_sched_set_max_avail_bytes(struct sge *, unsigned int);
92void t1_sched_set_drain_bits_per_us(struct sge *, unsigned int, unsigned int);
93unsigned int t1_sched_update_parms(struct sge *, unsigned int, unsigned int, 91unsigned int t1_sched_update_parms(struct sge *, unsigned int, unsigned int,
94 unsigned int); 92 unsigned int);
95 93