]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: macb: check clk_set_rate return value to be negative
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 19 Jan 2021 11:26:45 +0000 (13:26 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000 (15:09 +0200)
commit96449581b3d57e3f1561cec82920a951664398b1
treeff56c3d9af9abb125502cd77373ed8c2a6e233a9
parentbb890f75d5217a3c5db0fa40acf35ee317ec1905
net: macb: check clk_set_rate return value to be negative

clk_set_rate() returns the set rate in case of success and a
negative number in case of failure. Consider failure only the
negative numbers.

Fixes: 3ef64444de157 ("dm: net: macb: Implement link speed change callback")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
drivers/net/macb.c