diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2025-09-23 16:58:44 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-23 16:58:44 -0700 |
| commit | bc992abe0fd1faa8c470c4a652f360b733d5bded (patch) | |
| tree | 157f2a4f5f8d9ffb809852430499ff14a158e2ca /include/linux | |
| parent | 7e554f317be8e41ce2f2ce9f6faca14e697b0d26 (diff) | |
| parent | 092263a03105539b8dfe74c59be4c6cce1304d5f (diff) | |
Merge branch 'net-phy-stop-exporting-phy_driver_register'
Heiner Kallweit says:
====================
net: phy: stop exporting phy_driver_register
Once the last user of a clock in dp83640 has been removed, the clock should
be removed. So far orphaned clocks are cleaned up in dp83640_free_clocks()
only. Add the logic to remove orphaned clocks in dp83640_remove().
This allows to simplify the code, and use standard macro
module_phy_driver(). dp83640 was the last external user of
phy_driver_register(), so we can stop exporting this function afterwards.
====================
Link: https://patch.msgid.link/b86c2ecc-41f6-4f7f-85db-b7fa684d1fb7@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/phy.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index d09fc42e61f3..b377dfaa6801 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -2032,7 +2032,6 @@ static inline int phy_read_status(struct phy_device *phydev) void phy_driver_unregister(struct phy_driver *drv); void phy_drivers_unregister(struct phy_driver *drv, int n); -int phy_driver_register(struct phy_driver *new_driver, struct module *owner); int phy_drivers_register(struct phy_driver *new_driver, int n, struct module *owner); void phy_error(struct phy_device *phydev); |
