]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:25 +0000 (08:34 +0100)
commit612f85fbad3365218d4d22bbf4444b583164ff04
treeca30f65a310ca154da1a18a91c8c69b25ab4ab8b
parent33483f1aa2c70e57557594869b865cce11bc01b3
phy: phy-can-transceiver: Skip warning if no "max-bitrate"

[ Upstream commit bc30c15f275484f9b9fe27c2fa0895f3022d9943 ]

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: c91045b3fad13898 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/phy-can-transceiver.c