|
@@ -134,65 +134,4 @@ struct stmmac_priv *stmmac_dvr_probe(struct device *device,
|
|
|
void stmmac_disable_eee_mode(struct stmmac_priv *priv);
|
|
|
bool stmmac_eee_init(struct stmmac_priv *priv);
|
|
|
|
|
|
-#ifdef CONFIG_STMMAC_PLATFORM
|
|
|
-extern struct platform_driver stmmac_pltfr_driver;
|
|
|
-
|
|
|
-static inline int stmmac_register_platform(void)
|
|
|
-{
|
|
|
- int err;
|
|
|
-
|
|
|
- err = platform_driver_register(&stmmac_pltfr_driver);
|
|
|
- if (err)
|
|
|
- pr_err("stmmac: failed to register the platform driver\n");
|
|
|
-
|
|
|
- return err;
|
|
|
-}
|
|
|
-
|
|
|
-static inline void stmmac_unregister_platform(void)
|
|
|
-{
|
|
|
- platform_driver_unregister(&stmmac_pltfr_driver);
|
|
|
-}
|
|
|
-#else
|
|
|
-static inline int stmmac_register_platform(void)
|
|
|
-{
|
|
|
- pr_debug("stmmac: do not register the platf driver\n");
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-static inline void stmmac_unregister_platform(void)
|
|
|
-{
|
|
|
-}
|
|
|
-#endif /* CONFIG_STMMAC_PLATFORM */
|
|
|
-
|
|
|
-#ifdef CONFIG_STMMAC_PCI
|
|
|
-extern struct pci_driver stmmac_pci_driver;
|
|
|
-static inline int stmmac_register_pci(void)
|
|
|
-{
|
|
|
- int err;
|
|
|
-
|
|
|
- err = pci_register_driver(&stmmac_pci_driver);
|
|
|
- if (err)
|
|
|
- pr_err("stmmac: failed to register the PCI driver\n");
|
|
|
-
|
|
|
- return err;
|
|
|
-}
|
|
|
-
|
|
|
-static inline void stmmac_unregister_pci(void)
|
|
|
-{
|
|
|
- pci_unregister_driver(&stmmac_pci_driver);
|
|
|
-}
|
|
|
-#else
|
|
|
-static inline int stmmac_register_pci(void)
|
|
|
-{
|
|
|
- pr_debug("stmmac: do not register the PCI driver\n");
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-static inline void stmmac_unregister_pci(void)
|
|
|
-{
|
|
|
-}
|
|
|
-#endif /* CONFIG_STMMAC_PCI */
|
|
|
-
|
|
|
#endif /* __STMMAC_H__ */
|