summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-qcom-ufs-qmp-20nm.c
diff options
context:
space:
mode:
authorVivek Gautam <vivek.gautam@codeaurora.org>2016-11-08 15:37:42 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2016-11-08 18:05:44 -0500
commit89bd296b78bc2222c04b6e9cae5b56295b023228 (patch)
tree457819374cad9006bcccc11aae943c9f500d2724 /drivers/phy/phy-qcom-ufs-qmp-20nm.c
parentadd78fc05702b1082b31cf99c670bab5919cbe80 (diff)
downloadtalos-op-linux-89bd296b78bc2222c04b6e9cae5b56295b023228.tar.gz
talos-op-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-20nm.c')
-rw-r--r--drivers/phy/phy-qcom-ufs-qmp-20nm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/phy-qcom-ufs-qmp-20nm.c b/drivers/phy/phy-qcom-ufs-qmp-20nm.c
index 770087ab05e2..e09ecb8c1e5f 100644
--- a/drivers/phy/phy-qcom-ufs-qmp-20nm.c
+++ b/drivers/phy/phy-qcom-ufs-qmp-20nm.c
@@ -67,14 +67,14 @@ static int ufs_qcom_phy_qmp_20nm_init(struct phy *generic_phy)
struct ufs_qcom_phy *phy_common = &phy->common_cfg;
int err = 0;
- 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);
OpenPOWER on IntegriCloud