]> git.baikalelectronics.ru Git - kernel.git/commit
phy/micrel: move flag handling to function for common use
authorHector Palacios <hector.palacios@digi.com>
Sun, 10 Mar 2013 22:50:03 +0000 (22:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 10:50:59 +0000 (06:50 -0400)
commitcefa6e2c476954f866e5c323ccf83242d940f107
tree85ad7923c17535647cfd736a0d01b62bb642c244
parent3d3ab7a10d42b056cc4ae586e4a1d3334937c80b
phy/micrel: move flag handling to function for common use

The flag MICREL_PHY_50MHZ_CLK is not of exclusive use of KSZ8051
model. At least KSZ8021 and KSZ8031 models also use it.
This patch moves the handling of this and future flags to a
separate function so that the different PHY models can call it on
their init function, if needed.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c