summaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac/stmmac_timer.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2009-11-22 23:59:56 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-23 19:37:52 +0100
commit73cfe264c27fb50d4592ef1580486bea319443ac (patch)
tree391dc6e6a1845457f46cb4ba3c4c0683e71d7b66 /drivers/net/stmmac/stmmac_timer.h
parentstmmac: fixed a compilation error when use the external timer (diff)
downloadlinux-73cfe264c27fb50d4592ef1580486bea319443ac.tar.xz
linux-73cfe264c27fb50d4592ef1580486bea319443ac.zip
stmmac: do not fail when the timer cannot be used.
If the external timer cannot be used the driver will continue to work without mitigation. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac/stmmac_timer.h')
-rw-r--r--drivers/net/stmmac/stmmac_timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/stmmac/stmmac_timer.h b/drivers/net/stmmac/stmmac_timer.h
index f795cae33725..6863590d184b 100644
--- a/drivers/net/stmmac/stmmac_timer.h
+++ b/drivers/net/stmmac/stmmac_timer.h
@@ -26,6 +26,7 @@ struct stmmac_timer {
void (*timer_start) (unsigned int new_freq);
void (*timer_stop) (void);
unsigned int freq;
+ unsigned int enable;
};
/* Open the HW timer device and return 0 in case of success */