]> Pileus Git - ~andy/linux/commit
tg3: Create timer helper functions
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 22 Feb 2012 12:35:21 +0000 (12:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2012 06:57:17 +0000 (01:57 -0500)
commit21f7638e6f05c36b35a36cd4311e08be5dc00bb1
tree2d88f0e8299cbc613dce1509293f349fe6bf93bb
parentc71013597d49c7ca8bb5049f0c7873df2643fad5
tg3: Create timer helper functions

This patch seeks to clean up the timer related code.  It begins by
moving one-time timer setup code from tg3_open() to tg3_init_one().
It then creates a function that encapsulates the code needed to start
the timer.  A tg3_timer_stop() function was added for parity.  Finally,
this patch moves all the timer functions to a more suitable location.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c