From: Francois Romieu <rom...@fr.zoreil.com> Signed-off-by: Francois Romieu <rom...@fr.zoreil.com> Cc: Corinna Vinschen <vinsc...@redhat.com> Cc: pomidorabelis...@gmail.com --- drivers/net/ethernet/realtek/r8169.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 73a60a7..c0a5edb 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -2190,6 +2190,13 @@ static int rtl8169_get_sset_count(struct net_device *dev, int sset) } } +DECLARE_RTL_COND(rtl_reset_counters_cond) +{ + void __iomem *ioaddr = tp->mmio_addr; + + return RTL_R32(CounterAddrLow) & CounterReset; +} + static struct rtl8169_counters *rtl8169_map_counters(struct net_device *dev, dma_addr_t *paddr, u32 counter_cmd) @@ -2224,13 +2231,6 @@ static void rtl8169_unmap_counters (struct net_device *dev, dma_free_coherent(d, sizeof(*counters), counters, paddr); } -DECLARE_RTL_COND(rtl_reset_counters_cond) -{ - void __iomem *ioaddr = tp->mmio_addr; - - return RTL_R32(CounterAddrLow) & CounterReset; -} - static bool rtl8169_reset_counters(struct net_device *dev) { struct rtl8169_private *tp = netdev_priv(dev); -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html