• Grant Likely's avatar
    net: fix fsl_pq_mdio driver to use module_init() · 434e7b0d
    Grant Likely authored
    Modules are not supposed to use any of the *_initcall*() hooks as
    the entry point.  fsl_pq_mdio.c was using subsys_initcall_sync()
    instead of module_init() to guarantee that the MDIO bus was initialized
    before the Ethernet driver goes looking for the phy.  However, the recent
    OF helpers rework happens to also make sure PHY connection is deferred to
    .open time, so using an initcall is no longer necessary.
    
    This patch replaces the initcall with a more traditional an accepted
    module_init() call.
    
    Tested on Freescale MPC8349emitxgp eval board.
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    434e7b0d
fsl_pq_mdio.c 9.63 KB