For files that were getting these macros via the implicit presence
of module.h being everywhere.
With contributions from Stephen Rothwell <[email protected]>.
Signed-off-by: Paul Gortmaker <[email protected]>
The patch extends 'enum phy_interface_t' and of_get_phy_mode a little
bit with PHY_INTERFACE_MODE_NA and PHY_INTERFACE_MODE_SMII added,
and then converts ibm_newemac net driver to use of_get_phy_mode
getting phy mode from device tree.
It also resolves the namespace conflict on phy_read/write between
common mdiobus interface and ibm_newemac private one.
Signed-off-by: Shawn Guo <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Grant Likely <[email protected]>
Acked-by: Grant Likely <[email protected]>
Acked-by: David Miller <[email protected]>
There are two identical implementations of of_get_mac_address(), one
each in arch/powerpc/kernel/prom_parse.c and
arch/microblaze/kernel/prom_parse.c. Move this function to a new
common file of_net.{c,h} and adjust all the callers to include the new
header.
Signed-off-by: David Daney <[email protected]>
[[email protected]: protect header with #ifdef]
Signed-off-by: Grant Likely <[email protected]>