]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
phy: cadence: Sierra: Fix error return code in cdns_sierra_phy_probe()
authorWang Wensheng <wangwensheng4@huawei.com>
Mon, 17 May 2021 01:57:49 +0000 (01:57 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:24:11 +0000 (19:24 +0200)
commitb6f256673b836010f1d532ec41cd30272535fd0c
tree30375a1325a8f54935c532d76c1ead53643846df
parent1d2c349104709c3f2e68ce70762a6071e358505b
phy: cadence: Sierra: Fix error return code in cdns_sierra_phy_probe()

BugLink: https://bugs.launchpad.net/bugs/1934012
commit 6411e386db0a477217607015e7d2910d02f75426 upstream.

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: a43f72ae136a ("phy: cadence: Sierra: Change MAX_LANES of Sierra to 16")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com>
Link: https://lore.kernel.org/r/20210517015749.127799-1-wangwensheng4@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/phy/cadence/phy-cadence-sierra.c