Staging: slicoss: remove DEBUG_REGISTER_TRACE
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Feb 2009 01:29:34 +0000 (17:29 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:05 +0000 (14:53 -0700)
It's not ever defined, so remove it from the code base.

Cc: Lior Dotan <liodot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/slicoss/slic_os.h
drivers/staging/slicoss/slicoss.c

index bcc61d5f9387f092a93a20a3ecca9f76594e92a5..d5fab0ce9f69ba575fbcb0dc652e378d4934c5a4 100644 (file)
 #ifndef _SLIC_OS_SPECIFIC_H_
 #define _SLIC_OS_SPECIFIC_H_
 
-#ifdef DEBUG_REGISTER_TRACE
-#define WRITE_REG(reg, value, flush)                                      \
-       {                                                           \
-               adapter->card->reg_type[adapter->card->debug_ix] = 0;   \
-               adapter->card->reg_offset[adapter->card->debug_ix] = \
-               ((unsigned char *)(&reg)) - \
-               ((unsigned char *)adapter->slic_regs); \
-               adapter->card->reg_value[adapter->card->debug_ix++] = value;  \
-               if (adapter->card->debug_ix == 32) \
-                       adapter->card->debug_ix = 0;                      \
-               slic_reg32_write((&reg), (value), (flush));            \
-       }
-#define WRITE_REG64(a, reg, value, regh, valh, flush)                        \
-       {                                                           \
-               adapter->card->reg_type[adapter->card->debug_ix] = 1;        \
-               adapter->card->reg_offset[adapter->card->debug_ix] = \
-               ((unsigned char *)(&reg)) - \
-               ((unsigned char *)adapter->slic_regs); \
-               adapter->card->reg_value[adapter->card->debug_ix] = value;   \
-               adapter->card->reg_valueh[adapter->card->debug_ix++] = valh;  \
-               if (adapter->card->debug_ix == 32) \
-                       adapter->card->debug_ix = 0;                      \
-               slic_reg64_write((a), (&reg), (value), (&regh), (valh), \
-                               (flush));\
-       }
-#else
 #define WRITE_REG(reg, value, flush) \
        slic_reg32_write((&reg), (value), (flush))
 #define WRITE_REG64(a, reg, value, regh, valh, flush) \
        slic_reg64_write((a), (&reg), (value), (&regh), (valh), (flush))
-#endif
 
 #endif  /* _SLIC_OS_SPECIFIC_H_  */
 
index 283156acdd566af55dd90ec7f6923e4d4a564ae8..73d4d25e1748bb164a551eae1edbabb60052d76d 100644 (file)
@@ -245,21 +245,6 @@ static void slic_dbg_macaddrs(struct adapter *adapter)
        return;
 }
 
-#ifdef DEBUG_REGISTER_TRACE
-static void slic_dbg_register_trace(struct adapter *adapter,
-                                       struct sliccard *card)
-{
-       uint i;
-
-       DBG_ERROR("Dump Register Write Trace: curr_ix == %d\n", card->debug_ix);
-       for (i = 0; i < 32; i++) {
-               DBG_ERROR("%2d %d %4x %x %x\n",
-                         i, card->reg_type[i], card->reg_offset[i],
-                         card->reg_value[i], card->reg_valueh[i]);
-       }
-}
-#endif
-
 static void slic_init_adapter(struct net_device *netdev,
                              struct pci_dev *pcidev,
                              const struct pci_device_id *pci_tbl_entry,