p54spi: remove dead code and definitions
authorChristian Lamparter <chunkeey@web.de>
Sat, 4 Jul 2009 15:49:59 +0000 (17:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:02:28 +0000 (15:02 -0400)
This patch removes some dead code:
p54spi.c:115: warning: ‘p54spi_read16’ defined but not used

and while we're at it, p54spi_registers_array is purged as well.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c

index 9b347cea98540654d26032af345a92331972a94c..d5f181ad37fc15a20f791a67826014fe70959d76 100644 (file)
@@ -111,15 +111,6 @@ static void p54spi_spi_write(struct p54s_priv *priv, u8 address,
        spi_sync(priv->spi, &m);
 }
 
-static u16 p54spi_read16(struct p54s_priv *priv, u8 addr)
-{
-       __le16 val;
-
-       p54spi_spi_read(priv, addr, &val, sizeof(val));
-
-       return le16_to_cpu(val);
-}
-
 static u32 p54spi_read32(struct p54s_priv *priv, u8 addr)
 {
        __le32 val;
@@ -139,31 +130,6 @@ static inline void p54spi_write32(struct p54s_priv *priv, u8 addr, __le32 val)
        p54spi_spi_write(priv, addr, &val, sizeof(val));
 }
 
-struct p54spi_spi_reg {
-       u16 address;            /* __le16 ? */
-       u16 length;
-       char *name;
-};
-
-static const struct p54spi_spi_reg p54spi_registers_array[] =
-{
-       { SPI_ADRS_ARM_INTERRUPTS,      32, "ARM_INT     " },
-       { SPI_ADRS_ARM_INT_EN,          32, "ARM_INT_ENA " },
-       { SPI_ADRS_HOST_INTERRUPTS,     32, "HOST_INT    " },
-       { SPI_ADRS_HOST_INT_EN,         32, "HOST_INT_ENA" },
-       { SPI_ADRS_HOST_INT_ACK,        32, "HOST_INT_ACK" },
-       { SPI_ADRS_GEN_PURP_1,          32, "GP1_COMM    " },
-       { SPI_ADRS_GEN_PURP_2,          32, "GP2_COMM    " },
-       { SPI_ADRS_DEV_CTRL_STAT,       32, "DEV_CTRL_STA" },
-       { SPI_ADRS_DMA_DATA,            16, "DMA_DATA    " },
-       { SPI_ADRS_DMA_WRITE_CTRL,      16, "DMA_WR_CTRL " },
-       { SPI_ADRS_DMA_WRITE_LEN,       16, "DMA_WR_LEN  " },
-       { SPI_ADRS_DMA_WRITE_BASE,      32, "DMA_WR_BASE " },
-       { SPI_ADRS_DMA_READ_CTRL,       16, "DMA_RD_CTRL " },
-       { SPI_ADRS_DMA_READ_LEN,        16, "DMA_RD_LEN  " },
-       { SPI_ADRS_DMA_WRITE_BASE,      32, "DMA_RD_BASE " }
-};
-
 static int p54spi_wait_bit(struct p54s_priv *priv, u16 reg, u32 bits)
 {
        int i;