phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Dec 2020 11:04:59 +0000 (14:04 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 13 Jan 2021 12:01:02 +0000 (17:31 +0530)
commit266df28f9ac16b0dff553d78bc3fb1c084b96b9d
treeb90f0f2ef92a2bc9a6cebb7a990502a35b52c881
parent915f1d230e5292bc2156a9997bcb19d9e632f10b
phy: cadence-torrent: Fix error code in cdns_torrent_phy_probe()

This error path should return -EINVAL, but currently it returns
success.

Fixes: d09945eacad0 ("phy: cadence-torrent: Check total lane count for all subnodes is within limit")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9s7Wxq+b6ls0q7o@mwanda
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-torrent.c