076-net-phy-export-fixed_phy_register.patch 986 B

123456789101112131415161718192021222324252627282930
  1. From 37e9a6904520b525b542ecd67201164d06fdb95a Mon Sep 17 00:00:00 2001
  2. From: Mark Salter <msalter@redhat.com>
  3. Date: Thu, 11 Dec 2014 23:03:26 -0500
  4. Subject: [PATCH] net: phy: export fixed_phy_register()
  5. When building the bcmgenet driver as module, I get:
  6. ERROR: "fixed_phy_register" [drivers/net/ethernet/broadcom/genet/genet.ko] undefined!
  7. commit b0ba512e225d72 ("net: bcmgenet: enable driver to work without device
  8. tree") which added a call to fixed_phy_register. But fixed_phy_register
  9. needs to be exported if used from a module.
  10. Signed-off-by: Mark Salter <msalter@redhat.com>
  11. Acked-by: Florian Fainelli <f.fainelli@gmail.com>
  12. Signed-off-by: David S. Miller <davem@davemloft.net>
  13. ---
  14. drivers/net/phy/fixed.c | 1 +
  15. 1 file changed, 1 insertion(+)
  16. --- a/drivers/net/phy/fixed.c
  17. +++ b/drivers/net/phy/fixed.c
  18. @@ -274,6 +274,7 @@ struct phy_device *fixed_phy_register(un
  19. return phy;
  20. }
  21. +EXPORT_SYMBOL_GPL(fixed_phy_register);
  22. static int __init fixed_mdio_bus_init(void)
  23. {