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)
commitb6bb4dfcb1803765e7d12a9807a8d4650545199a
tree85ad7923c17535647cfd736a0d01b62bb642c244
parentb818d1a7f72575eef17e00dc4085512c9cc8897d
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