OSDN Git Service

phy: ti: j721e-wiz: Fix some error return code in wiz_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 7 May 2020 05:41:09 +0000 (05:41 +0000)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 13 May 2020 02:57:35 +0000 (08:27 +0530)
commite2ae8bca494481a9f38fcd1d52943ac04e654745
tree12a7f84a698b5dd5c578c60850843accc96f042e
parent6d9c1de86443b9b59ea8a3f9bfaf54bf7d0853c9
phy: ti: j721e-wiz: Fix some error return code in wiz_probe()

Fix to return negative error code from some error handling
cases instead of 0, as done elsewhere in this function.

Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/20200507054109.110849-1-weiyongjun1@huawei.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/ti/phy-j721e-wiz.c