]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/skge.c
[PATCH] skge: chip clock rate typo
[linux-2.6-omap-h63xx.git] / drivers / net / skge.c
index 82200bfaa8ed2bb5bef5ea7f959d1a183887f234..7de9a07b2ac2defb1c45311c21b5348952bb82f5 100644 (file)
@@ -516,10 +516,7 @@ static int skge_set_pauseparam(struct net_device *dev,
 /* Chip internal frequency for clock calculations */
 static inline u32 hwkhz(const struct skge_hw *hw)
 {
-       if (hw->chip_id == CHIP_ID_GENESIS)
-               return 53215; /* or:  53.125 MHz */
-       else
-               return 78215; /* or:  78.125 MHz */
+       return (hw->chip_id == CHIP_ID_GENESIS) ? 53125 : 78125;
 }
 
 /* Chip HZ to microseconds */