diff options
author | Vivek Gautam <vivek.gautam@codeaurora.org> | 2016-11-08 15:37:42 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-08 18:05:44 -0500 |
commit | 89bd296b78bc2222c04b6e9cae5b56295b023228 (patch) | |
tree | 457819374cad9006bcccc11aae943c9f500d2724 /drivers/phy/phy-qcom-ufs-qmp-14nm.c | |
parent | add78fc05702b1082b31cf99c670bab5919cbe80 (diff) | |
download | talos-obmc-linux-89bd296b78bc2222c04b6e9cae5b56295b023228.tar.gz talos-obmc-linux-89bd296b78bc2222c04b6e9cae5b56295b023228.zip |
phy: qcom-ufs: Cleanup clock and regulator initialization
Different menthods pass around generic phy pointer to
extract device pointer. Instead, pass the device pointer
directly between function calls.
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/phy/phy-qcom-ufs-qmp-14nm.c')
-rw-r--r-- | drivers/phy/phy-qcom-ufs-qmp-14nm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/phy-qcom-ufs-qmp-14nm.c b/drivers/phy/phy-qcom-ufs-qmp-14nm.c index 6ee51490f786..e3bede73ec73 100644 --- a/drivers/phy/phy-qcom-ufs-qmp-14nm.c +++ b/drivers/phy/phy-qcom-ufs-qmp-14nm.c @@ -48,14 +48,14 @@ static int ufs_qcom_phy_qmp_14nm_init(struct phy *generic_phy) struct ufs_qcom_phy *phy_common = &phy->common_cfg; int err; - err = ufs_qcom_phy_init_clks(generic_phy, phy_common); + err = ufs_qcom_phy_init_clks(phy_common); if (err) { dev_err(phy_common->dev, "%s: ufs_qcom_phy_init_clks() failed %d\n", __func__, err); goto out; } - err = ufs_qcom_phy_init_vregulators(generic_phy, phy_common); + err = ufs_qcom_phy_init_vregulators(phy_common); if (err) { dev_err(phy_common->dev, "%s: ufs_qcom_phy_init_vregulators() failed %d\n", __func__, err); |