arch/risc-v/src/mpfs/mpfs_ethernet.c: Set correct return value

Return error in case of mpfs_i2cbus_initialize() failure.

Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
This commit is contained in:
Jani Paalijarvi 2025-01-07 10:57:31 +02:00 committed by Xiang Xiao
parent e1fb0b30c4
commit dd4ee256c3

View file

@ -3357,6 +3357,10 @@ static int mpfs_phyinit(struct mpfs_ethmac_s *priv)
{
ret = ksz9477_i2c_init(bus, KSZ9477_PORT_SGMII);
}
else
{
ret = -EINVAL;
}
#endif