From: Greg Kroah-Hartman Date: Thu, 26 Feb 2009 01:29:34 +0000 (-0800) Subject: Staging: slicoss: remove DEBUG_REGISTER_TRACE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5969ca00a23f1bda0d9f3679b760cb6fc7480788;p=openwrt%2Fstaging%2Fblogic.git Staging: slicoss: remove DEBUG_REGISTER_TRACE It's not ever defined, so remove it from the code base. Cc: Lior Dotan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slic_os.h b/drivers/staging/slicoss/slic_os.h index bcc61d5f9387..d5fab0ce9f69 100644 --- a/drivers/staging/slicoss/slic_os.h +++ b/drivers/staging/slicoss/slic_os.h @@ -42,37 +42,10 @@ #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 *)(®)) - \ - ((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((®), (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 *)(®)) - \ - ((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), (®), (value), (®h), (valh), \ - (flush));\ - } -#else #define WRITE_REG(reg, value, flush) \ slic_reg32_write((®), (value), (flush)) #define WRITE_REG64(a, reg, value, regh, valh, flush) \ slic_reg64_write((a), (®), (value), (®h), (valh), (flush)) -#endif #endif /* _SLIC_OS_SPECIFIC_H_ */ diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 283156acdd56..73d4d25e1748 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -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,