From 8a63113de037a5d1f86d0b7081ad88f87e86787d Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Tue, 8 Oct 2024 09:54:30 +0200 Subject: [PATCH] net: ksz9477: rename ksz_i2c_probe() to ksz_probe() In order to support management bus other than the I2C, rename ksz_i2c_probe() to ksz_probe() since this function is no longer specific to the I2C bus. Signed-off-by: Romain Naour --- drivers/net/ksz9477.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/ksz9477.c b/drivers/net/ksz9477.c index f24bf9943e..82db533c4e 100644 --- a/drivers/net/ksz9477.c +++ b/drivers/net/ksz9477.c @@ -576,10 +576,7 @@ static bool dsa_ksz_check_ops(struct ksz_phy_ops *phy_ops) return true; } -/* - * I2C driver - */ -static int ksz_i2c_probe(struct udevice *dev) +static int ksz_probe(struct udevice *dev) { struct dsa_pdata *pdata = dev_get_uclass_plat(dev); struct ksz_dsa_priv *priv = dev_get_priv(dev); @@ -678,7 +675,7 @@ U_BOOT_DRIVER(ksz) = { .name = "ksz-switch", .id = UCLASS_DSA, .of_match = ksz_ids, - .probe = ksz_i2c_probe, + .probe = ksz_probe, .ops = &ksz_dsa_ops, .priv_auto = sizeof(struct ksz_dsa_priv), }; -- 2.39.5