net: phy: assign default match function for non-PHY MDIO devices
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 10 Jun 2025 06:03:43 +0000 (08:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jun 2025 01:12:37 +0000 (18:12 -0700)
commitb1b36680107ede3a4ec7fa41d052971606d6b325
treea0b204acd5beb8acf57761d043fbb162fd41392c
parent8f9fee2595c6f4220d6b628b69f82acf67447400
net: phy: assign default match function for non-PHY MDIO devices

Make mdio_device_bus_match() the default match function for non-PHY
MDIO devices. Benefit is that we don't have to export this function
any longer. As long as mdiodev->modalias isn't set, there's no change
in behavior. mdiobus_create_device() is the only place where
mdiodev->modalias gets set, but this function sets
mdio_device_bus_match() as match function anyway.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/6c94e3d3-bfb0-4ddc-a518-6fddbc64e1d0@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio_bus_provider.c
drivers/net/phy/mdio_device.c
include/linux/mdio.h