phy: qcom-ufs: Catch devm_phy_create failure in ufs_qcom_phy_generic_probe
authorAxel Lin <axel.lin@ingics.com>
Tue, 3 Mar 2015 01:05:55 +0000 (09:05 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 25 Mar 2015 23:36:09 +0000 (05:06 +0530)
commitd89a7f69d69409ffafad7affc1cc3085d2cd0dd8
tree8c5596899f24618ad3f7fe04250f605d3d164c5c
parent080de5ba390c54b7504c43b36ae21911acf66b30
phy: qcom-ufs: Catch devm_phy_create failure in ufs_qcom_phy_generic_probe

Current code does NULL test against return value of ufs_qcom_phy_generic_probe.
However, in the case of devm_phy_create() failure, ufs_qcom_phy_generic_probe
does not return NULL. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-qcom-ufs.c