@@ -57,6 +57,9 @@ extern void mdio_bus_exit(void);
5757static LIST_HEAD (phy_fixup_list );
5858static DEFINE_MUTEX (phy_fixup_lock );
5959
60+ static int phy_attach_direct (struct net_device * dev , struct phy_device * phydev ,
61+ u32 flags , phy_interface_t interface );
62+
6063/*
6164 * Creates a new phy_fixup and adds it to the list
6265 * @bus_id: A string which matches phydev->dev.bus_id (or PHY_ANY_ID)
@@ -146,7 +149,8 @@ int phy_scan_fixups(struct phy_device *phydev)
146149}
147150EXPORT_SYMBOL (phy_scan_fixups );
148151
149- struct phy_device * phy_device_create (struct mii_bus * bus , int addr , int phy_id )
152+ static struct phy_device * phy_device_create (struct mii_bus * bus ,
153+ int addr , int phy_id )
150154{
151155 struct phy_device * dev ;
152156
@@ -193,7 +197,6 @@ struct phy_device* phy_device_create(struct mii_bus *bus, int addr, int phy_id)
193197
194198 return dev ;
195199}
196- EXPORT_SYMBOL (phy_device_create );
197200
198201/**
199202 * get_phy_id - reads the specified addr for its ID.
@@ -316,7 +319,7 @@ EXPORT_SYMBOL(phy_find_first);
316319 * If you want to monitor your own link state, don't call
317320 * this function.
318321 */
319- void phy_prepare_link (struct phy_device * phydev ,
322+ static void phy_prepare_link (struct phy_device * phydev ,
320323 void (* handler )(struct net_device * ))
321324{
322325 phydev -> adjust_link = handler ;
@@ -435,8 +438,8 @@ int phy_init_hw(struct phy_device *phydev)
435438 * the attaching device, and given a callback for link status
436439 * change. The phy_device is returned to the attaching driver.
437440 */
438- int phy_attach_direct (struct net_device * dev , struct phy_device * phydev ,
439- u32 flags , phy_interface_t interface )
441+ static int phy_attach_direct (struct net_device * dev , struct phy_device * phydev ,
442+ u32 flags , phy_interface_t interface )
440443{
441444 struct device * d = & phydev -> dev ;
442445
@@ -473,7 +476,6 @@ int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
473476 * (dev_flags and interface) */
474477 return phy_init_hw (phydev );
475478}
476- EXPORT_SYMBOL (phy_attach_direct );
477479
478480/**
479481 * phy_attach - attach a network device to a particular PHY device
@@ -540,7 +542,7 @@ EXPORT_SYMBOL(phy_detach);
540542 * what is supported. Returns < 0 on error, 0 if the PHY's advertisement
541543 * hasn't changed, and > 0 if it has changed.
542544 */
543- int genphy_config_advert (struct phy_device * phydev )
545+ static int genphy_config_advert (struct phy_device * phydev )
544546{
545547 u32 advertise ;
546548 int oldadv , adv ;
@@ -605,7 +607,6 @@ int genphy_config_advert(struct phy_device *phydev)
605607
606608 return changed ;
607609}
608- EXPORT_SYMBOL (genphy_config_advert );
609610
610611/**
611612 * genphy_setup_forced - configures/forces speed/duplex from @phydev
@@ -615,7 +616,7 @@ EXPORT_SYMBOL(genphy_config_advert);
615616 * to the values in phydev. Assumes that the values are valid.
616617 * Please see phy_sanitize_settings().
617618 */
618- int genphy_setup_forced (struct phy_device * phydev )
619+ static int genphy_setup_forced (struct phy_device * phydev )
619620{
620621 int err ;
621622 int ctl = 0 ;
0 commit comments