From: Romain Naour Date: Tue, 8 Oct 2024 07:54:30 +0000 (+0200) Subject: net: ksz9477: rename ksz_i2c_probe() to ksz_probe() X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=8a63113de037a5d1f86d0b7081ad88f87e86787d;p=u-boot.git 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 --- 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), };