diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-26 22:09:38 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 21:53:07 (GMT) |
commit | a0a1cbef8667c410d5118716ce293af1a384107f (patch) | |
tree | 510498ad2722f88fd057da7774ab4b30e911cce1 | |
parent | 04ac01caa68aca58347ff91354fc4851c9d619e9 (diff) | |
download | linux-fsl-qoriq-a0a1cbef8667c410d5118716ce293af1a384107f.tar.xz |
Staging: slicoss: remove SLIC_PING_TIMER_ENABLED
It was always enabled, so just enable it properly.
Cc: Lior Dotan <liodot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/slicoss/slicoss.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 5308114..f3e369b 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -59,7 +59,6 @@ #define DEBUG_MICROCODE 1 #define DBG 1 #define SLIC_ASSERT_ENABLED 1 -#define SLIC_PING_TIMER_ENABLED 1 #define SLIC_INTERRUPT_PROCESS_LIMIT 1 #define SLIC_OFFLOAD_IP_CHECKSUM 1 #define STATS_TIMER_INTERVAL 2 @@ -1392,13 +1391,13 @@ static void slic_init_cleanup(struct adapter *adapter) adapter->pshmem = NULL; adapter->phys_shmem = (dma_addr_t) NULL; } -#if SLIC_PING_TIMER_ENABLED + if (adapter->pingtimerset) { DBG_MSG("pingtimer "); adapter->pingtimerset = 0; del_timer(&adapter->pingtimer); } -#endif + slic_rspqueue_free(adapter); slic_cmdq_free(adapter); slic_rcvqueue_free(adapter); @@ -1752,7 +1751,7 @@ static int slic_if_init(struct adapter *adapter) card->loadtimerset = 1; } -#if SLIC_PING_TIMER_ENABLED + if (!adapter->pingtimerset) { DBG_MSG("slicoss: %s start card_ping_timer(slic)\n", __func__); @@ -1765,7 +1764,6 @@ static int slic_if_init(struct adapter *adapter) adapter->pingtimerset = 1; adapter->card->pingstatus = ISR_PINGMASK; } -#endif /* * clear any pending events, then enable interrupts |