diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2012-02-22 22:07:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-24 03:24:18 -0500 |
commit | 7c3a95a15ad2a5278498a72df0463131048926a3 (patch) | |
tree | 60b711be3d2f20c414d5bcca4100e3e7a293a1f1 /drivers/net/ethernet/ti/davinci_mdio.c | |
parent | b4ad0428139491355ea8742294c77942c312c5bb (diff) | |
download | linux-7c3a95a15ad2a5278498a72df0463131048926a3.tar.bz2 |
davinci_mdio: Correct bitmask for clock divider value
The CLKDIV bitfield in the MDIO Control Register is a 16 bit field,
therefore the CLKDIV value may range from 0 to 0xffff.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_mdio.c')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index af8b8fc39eb2..2757c7d6e633 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c @@ -53,7 +53,7 @@ struct davinci_mdio_regs { u32 control; #define CONTROL_IDLE BIT(31) #define CONTROL_ENABLE BIT(30) -#define CONTROL_MAX_DIV (0xff) +#define CONTROL_MAX_DIV (0xffff) u32 alive; u32 link; |