[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b86c2ecc-41f6-4f7f-85db-b7fa684d1fb7@gmail.com>
Date: Sat, 20 Sep 2025 23:31:23 +0200
From: Heiner Kallweit <hkallweit1@...il.com>
To: Andrew Lunn <andrew@...n.ch>, Andrew Lunn <andrew+netdev@...n.ch>,
Russell King - ARM Linux <linux@...linux.org.uk>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Jakub Kicinski <kuba@...nel.org>, David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH net-next 0/2] 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.
Heiner Kallweit (2):
net: phy: dp83640: improve phydev and driver removal handling
net: phy: stop exporting phy_driver_register
drivers/net/phy/dp83640.c | 58 +++++++++++++-----------------------
drivers/net/phy/phy_device.c | 4 +--
include/linux/phy.h | 1 -
3 files changed, 22 insertions(+), 41 deletions(-)
--
2.51.0
Powered by blists - more mailing lists