phy: phy-can-transceiver: Skip warning if no "max-bitrate"
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 18 Jan 2023 10:29:58 +0000 (11:29 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Jan 2023 17:28:05 +0000 (22:58 +0530)
commitbc30c15f275484f9b9fe27c2fa0895f3022d9943
tree33b0c1548a8408380d0e69238f84104e79674591
parentc63835bf1c750c9b3aec1d5c23d811d6375fc23d
phy: phy-can-transceiver: Skip warning if no "max-bitrate"

According to the DT bindings, the "max-bitrate" property is optional.
However, when it is not present, a warning is printed.
Fix this by adding a missing check for -EINVAL.

Fixes: a4a86d273ff1b6f7 ("phy: phy-can-transceiver: Add support for generic CAN transceiver driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/88e158f97dd52ebaa7126cd9631f34764b9c0795.1674037334.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-can-transceiver.c